MLH-Fellowship/babel-sandbox

Configure server for production

Closed this issue · 1 comments

  • The server must store all keys and secrets in a .env file
  • Keys and secrets must be removed from .js code
  • Sever should include an .env.example file
  • Sails must lift in production mode

Known Keys/Secrets:

  • mongo
  • s3

The config vars are tucked away in heroku currently. Anyone cloning the repo and setting up a local mongodb database need not worry about setting up a .env file unless they'd like to connect to the prod DB

npm start and sails lift --prod, the scripts needed to launch sails in prod` will throw an error

sails lift [--port {PORT}], the script that connects to localhost:{PORT} should not throw, assuming mongo is setup correctly on localhost