1.1.0 • Published 9 years ago

taco-start-script v1.1.0

Weekly downloads
9
License
MIT
Repository
github
Last release
9 years ago

taco-start-script

Run a start command depending on the environment. Compatible with other taco deployment tools.

npm install -g taco-start-script

Usage

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.