A reproducible setup procedure needs to be made. Ideally, set an environment variable mongodb with the mongodb connection URL, then when visiting the site the first time, redirect to a "first install" page which sets up needed vars such as auth keys, admin username, etc. First install should only happen when NODE_ENV is development. When in production, throw an error or something.
Ideally for development, add a script (grunt or just node?) that generates a environment.json where mongodb and NODE_ENV could be set that way we don't mess with anyone's local environment. environment.json should be added to .gitignore so it doesn't get pulled in automatically.
A reproducible setup procedure needs to be made. Ideally, set an environment variable
mongodb
with the mongodb connection URL, then when visiting the site the first time, redirect to a "first install" page which sets up needed vars such as auth keys, admin username, etc. First install should only happen whenNODE_ENV
isdevelopment
. When in production, throw an error or something.Ideally for development, add a script (grunt or just node?) that generates a
environment.json
wheremongodb
andNODE_ENV
could be set that way we don't mess with anyone's local environment.environment.json
should be added to .gitignore so it doesn't get pulled in automatically.