From e9528a8b01c6b83ed69bf9d6abbd1d72a0805e55 Mon Sep 17 00:00:00 2001 From: Matyas Peto Date: Sun, 7 Oct 2018 16:32:43 +0200 Subject: [PATCH] Added .sequelizerc to be able to use same config from config.js for Sequelize CLI --- .sequelizerc | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .sequelizerc diff --git a/.sequelizerc b/.sequelizerc new file mode 100644 index 0000000..6716b0b --- /dev/null +++ b/.sequelizerc @@ -0,0 +1,5 @@ +const CONFIG = require('./config/config'); + +module.exports = { + 'url': CONFIG.db_dialect + '://' + CONFIG.db_user + ':' + CONFIG.db_password + '@' + CONFIG.db_host + ':' + CONFIG.db_port + '/' + CONFIG.db_name, +} \ No newline at end of file