You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then if someone wants to use a local database, they just make sure they have a variable called USE_LOCAL_DB in their env file. On Heroku, or wherever you want to use a hosted DB, this variable should not exist so then the statement ssl: !process.env.USE_LOCAL_DB evaluates to ssl:true as it is now.
The text was updated successfully, but these errors were encountered:
This isn't a big deal, but something that might be useful to know:
This line, in
sequilize.js
which you need to make the remote DB work, stops a local DB from working:There are a few ways around it, a simple one is having it depend on an environment variable, eg:
Then if someone wants to use a local database, they just make sure they have a variable called
USE_LOCAL_DB
in theirenv
file. On Heroku, or wherever you want to use a hosted DB, this variable should not exist so then the statementssl: !process.env.USE_LOCAL_DB
evaluates tossl:true
as it is now.The text was updated successfully, but these errors were encountered: