willzeng / cograph

A way to build and explore webs of ideas.
http://www.cograph.co/
GNU General Public License v2.0
15 stars 3 forks source link

DB credentials checked into codebase #643

Open harlantwood opened 9 years ago

harlantwood commented 9 years ago

Recommend fix: use the awesome dotenv package to load environment variables either from process.env (if they exist there, as on Heroku) or from a local .env file, typically on a dev box.

I will create a PR once #642 is merged (otherwise the diff will not make sense) -- I created a PR in my own repo to show a demo of how this would work: https://github.com/harlantwood/cograph/pull/1/files

harlantwood commented 9 years ago

Also we would want notes in the README:

To get started in your local dev env: cp .env.example .env Change any credentials to your own databases, etc

willzeng commented 9 years ago

Yep we should go in this direction as soon as we sort the CI in #642. +1