Files
old-crm-integration/config/config.js

28 lines
728 B
JavaScript
Raw Normal View History

2019-07-25 06:53:32 +02:00
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,
};
2019-07-24 08:23:55 +02:00
module.exports = {
development: {
username: 'docker',
password: 'docker',
database: 'CrmIntegration',
port: '5431',
dialect: 'postgres',
2019-07-25 06:53:32 +02:00
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false,
pool
2019-07-24 08:23:55 +02:00
},
test: {
"use_env_variable": 'DATABASE_URL',
2019-07-25 06:53:32 +02:00
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false,
pool
2019-07-24 08:23:55 +02:00
},
production: {
"use_env_variable": 'DATABASE_URL',
2019-07-25 06:53:32 +02:00
logging: parseInt(process.env.SEQUELIZE_LOGGING) ? console.log : false,
pool
2019-07-24 08:23:55 +02:00
}
};