From a691ab94c74ff66889f3d810c6ce839554d68b28 Mon Sep 17 00:00:00 2001 From: Senad Uka Date: Wed, 24 Jul 2019 08:23:55 +0200 Subject: [PATCH] Config.js --- config/config.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 config/config.js diff --git a/config/config.js b/config/config.js new file mode 100644 index 0000000..3bb20d6 --- /dev/null +++ b/config/config.js @@ -0,0 +1,18 @@ +module.exports = { + development: { + username: 'docker', + password: 'docker', + database: 'CrmIntegration', + port: '5431', + dialect: 'postgres', + logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false + }, + test: { + "use_env_variable": 'DATABASE_URL', + logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false + }, + production: { + "use_env_variable": 'DATABASE_URL', + logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false + } +};