mirror of https://github.com/status-im/codimd.git
Merge pull request #1552 from MHajoha/bugfix/sequelize-cli-dynamic-config
Allow Sequelize CLI to use options set in config.json
This commit is contained in:
commit
374bda0489
|
@ -2,8 +2,8 @@ const path = require('path')
|
||||||
const config = require('./lib/config')
|
const config = require('./lib/config')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
config: path.resolve('config.json'),
|
config: path.resolve('config.js'),
|
||||||
'migrations-path': path.resolve('lib', 'migrations'),
|
'migrations-path': path.resolve('lib', 'migrations'),
|
||||||
'models-path': path.resolve('lib', 'models'),
|
'models-path': path.resolve('lib', 'models'),
|
||||||
url: process.env['CMD_DB_URL'] || config.dbURL
|
url: config.dbURL
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue