mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
d962504dde
This PR contains the following updates: | Package | Type | Update | Change | References | |---|---|---|---|---| | std-env | dependencies | major | `^1.3.1` -> `^2.0.2` | [source](https://renovatebot.com/gh/blindmedia/std-env) | --- ### Release Notes <details> <summary>blindmedia/std-env</summary> ### [`v2.0.2`](https://renovatebot.com/gh/blindmedia/std-env/compare/v2.0.1...v2.0.2) [Compare Source](https://renovatebot.com/gh/blindmedia/std-env/compare/v2.0.1...v2.0.2) ### [`v2.0.1`](https://renovatebot.com/gh/blindmedia/std-env/compare/v2.0.0...v2.0.1) [Compare Source](https://renovatebot.com/gh/blindmedia/std-env/compare/v2.0.0...v2.0.1) ### [`v2.0.0`](https://renovatebot.com/gh/blindmedia/std-env/compare/v1.3.1...v2.0.0) [Compare Source](https://renovatebot.com/gh/blindmedia/std-env/compare/v1.3.1...v2.0.0) </details> --- ### Renovate configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or if you modify the PR title to begin with "`rebase!`". 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- This PR has been generated by [Renovate Bot](https://renovatebot.com/gh/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#nuxt/nuxt.js). |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
package.js | ||
package.json | ||
README.md | ||
rollup.config.js |
nuxt-start
Start Nuxt.js Application in production mode.
Installation
npm install --save nuxt-start
Add/Update your "start" script into your package.json
:
{
"scripts": {
"start": "nuxt-start"
}
}
Usage
nuxt-start <dir> -p <port number> -H <hostname> -c <config file>
Programmatic Usage
const { Nuxt } = require('nuxt-start')
// Require nuxt config
const config = require('./nuxt.config.js')
// Create a new nuxt instance
const nuxt = new Nuxt(config)
// Start nuxt.js server
nuxt.listen(3000) // nuxt.listen(port, host)
// Or use `nuxt.render` as an express middleware