kevinhynes / web-api-capstone

Completed web API portion of Expresso web app.
0 stars 0 forks source link

Info: ??? Why do we use different notation within migration.js? #4

Open melissamcewen opened 6 years ago

melissamcewen commented 6 years ago

https://github.com/kevinhynes/capstoneExpresso/blob/master/api/timesheets.js#L6

Yeah good question, and you should really use that notation in migration.js, since what this does is allows you to override the default db with a custom one using process environment variables. As it stands, if you were using an override, it would not work with migration.js

here is a good article about those variables https://www.twilio.com/blog/2017/08/working-with-environment-variables-in-node-js.html