Fix for loading

This commit is contained in:
Senad Uka
2019-07-25 06:53:32 +02:00
parent a691ab94c7
commit 2db47e95e1
26 changed files with 838 additions and 400 deletions

View File

@@ -1,3 +1,9 @@
const pool = {
max: parseInt(process.env.DB_POOL_MAX_CONNECTIONS) || 5,
acquire: parseInt(process.env.DB_POOL_ACQUIRE) || 60000,
evict: parseInt(process.env.DB_POOL_EVICT) || 1000,
};
module.exports = {
development: {
username: 'docker',
@@ -5,14 +11,17 @@ module.exports = {
database: 'CrmIntegration',
port: '5431',
dialect: 'postgres',
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false,
pool
},
test: {
"use_env_variable": 'DATABASE_URL',
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false,
pool
},
production: {
"use_env_variable": 'DATABASE_URL',
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false,
pool
}
};

View File

@@ -1,16 +0,0 @@
{
"development": {
"username": "docker",
"password": "docker",
"database": "CrmIntegration",
"port": "5431",
"dialect": "postgres",
"logging": false
},
"test": {
"use_env_variable": "DATABASE_URL"
},
"production": {
"use_env_variable": "DATABASE_URL"
}
}