codimd/.sequelizerc.example
Maximilian Haye 6862166064
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>
2020-07-07 14:25:11 +02:00

10 lines
251 B
Plaintext

const path = require('path')
const config = require('./lib/config')
module.exports = {
config: path.resolve('config.js'),
'migrations-path': path.resolve('lib', 'migrations'),
'models-path': path.resolve('lib', 'models'),
url: config.dbURL
}