cograph icon indicating copy to clipboard operation
cograph copied to clipboard

DB credentials checked into codebase

Open harlantwood opened this issue 10 years ago • 2 comments

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 avatar May 21 '15 06:05 harlantwood

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

harlantwood avatar May 21 '15 06:05 harlantwood

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

willzeng avatar May 21 '15 11:05 willzeng