mirror of https://github.com/status-im/codimd.git
fix: Allow Sequelize CLI to use options set in config.json
Adds a config.js which uses lib/config to provide the Sequelize CLI with the same options as the application. Fixes #1396 Signed-off-by: Maximilian Haye <mhajoha@gmail.com>
This commit is contained in:
parent
7b148457a7
commit
6862166064
|
@ -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