Skip to content

Instantly share code, notes, and snippets.

@mikermcneil
Created October 5, 2016 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikermcneil/92769de1e6c10f0159f97d575e18c6cf to your computer and use it in GitHub Desktop.
Save mikermcneil/92769de1e6c10f0159f97d575e18c6cf to your computer and use it in GitHub Desktop.
Supplementary examples to go along with http://sailsjs.com/documentation/reference/configuration

Examples of configuring Sails with environment variables

Supplementary examples to go along with http://sailsjs.com/documentation/reference/configuration

sails_port=1492 sails lift
sails_port=1492 sails_mailgun__apiToken='token would be here' sails_models__connection=somePostgresqlServer sails_connections__somePostgresqlServer__password=l0lguyz sails lift
@carpiediem
Copy link

Should this solution also work when running tests in CircleCI? I can't seem to get it to work and I noticed that environmental variables are missing from the Order of precedence when starting programmatically in the Sails docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment