taco-start-script
v1.1.0
Published
Run npm start script based on environment
Maintainers
Readme
taco-start-script
Run a start command depending on the environment. Compatible with other taco deployment tools.
npm install -g taco-start-scriptUsage
In the package.json specify a start command for each environment.
{
"name": "my-app",
"scripts": {
"start": "taco-start-script",
"start-development": "node server.js",
"start-staging": "taco-nginx node server.js"
}
}Now when running npm start the script will look at NODE_ENV environment variable to determine how to start the application. If not specified it defaults to development.
