diff --git a/.sequelizerc.example b/.sequelizerc.example index 868712f4..e7a489e6 100644 --- a/.sequelizerc.example +++ b/.sequelizerc.example @@ -2,8 +2,8 @@ const path = require('path') const config = require('./lib/config') module.exports = { - config: path.resolve('config.json'), + config: path.resolve('config.js'), 'migrations-path': path.resolve('lib', 'migrations'), 'models-path': path.resolve('lib', 'models'), - url: process.env['CMD_DB_URL'] || config.dbURL + url: config.dbURL } diff --git a/config.js b/config.js new file mode 100644 index 00000000..c8ad532f --- /dev/null +++ b/config.js @@ -0,0 +1,3 @@ +const config = require('./lib/config') + +module.exports = config.db