GamerPolls / gamerpolls.com

A polling site geared towards use by streamers on Twitch.
http://gamerpolls.com/
GNU General Public License v3.0
5 stars 2 forks source link

Create setup procedure #1

Closed cletusc closed 10 years ago

cletusc commented 10 years ago

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.