Skip to content

Instantly share code, notes, and snippets.

@mtinra
Last active August 11, 2017 10:13
Show Gist options
  • Save mtinra/c91f73c888fd27ef49c4e31136d81914 to your computer and use it in GitHub Desktop.
Save mtinra/c91f73c888fd27ef49c4e31136d81914 to your computer and use it in GitHub Desktop.
Sequelize config files for connect to SSL server at Heroku progresql
DATABASE_PATH = postgres://user:pass@localhost:5432/dbname
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