Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Separate config for development/production #6
The current changes for environment support allow for the environment to be defined two different ways. First, the environment can be set as a cli arg, eg.
$ crux start --environment development
Second, it can also be provided as an environment variable, eg.
$ CRUX_ENVIRONMENT=development node ./core/init.js
If an environment arg is given, it will always have precedence over a cli arg. If no environment is given either way, it will default to
Also, the current environment can be determined using