-
-
Save mtinra/c91f73c888fd27ef49c4e31136d81914 to your computer and use it in GitHub Desktop.
Sequelize config files for connect to SSL server at Heroku progresql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATABASE_PATH = postgres://user:pass@localhost:5432/dbname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('dotenv').config(); | |
module.exports = { | |
development: { | |
use_env_variable: 'DATABASE_PATH', | |
dialect: 'postgres' | |
}, | |
production: { | |
use_env_variable: 'DATABASE_PATH', | |
dialect: 'postgres', | |
ssl: true, | |
dialectOptions: { | |
ssl: { | |
require: true | |
} | |
} | |
}, | |
test: {} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment