uek-109-LBb/counter_kand/backend/config/config.js
2024-07-02 08:54:15 +00:00

29 lines
950 B
JavaScript

require('dotenv').config({ path: '.env' });
module.exports = {
"development": {
"username": process.env.DB_USER || 'postgres',
"password": process.env.DB_PASSWORD || 'password',
"database": process.env.DB_NAME || 'database_development',
"host": process.env.DB_HOST || '127.0.0.1',
"dialect": "postgres",
"seederStorage": 'sequelize'
},
"test": {
"username": process.env.DB_USER || 'postgres',
"password": process.env.DB_PASSWORD || 'password',
"database": process.env.DB_NAME || 'database_test',
"host": process.env.DB_HOST || '127.0.0.1',
"dialect": "postgres",
"seederStorage": 'sequelize'
},
"production": {
"username": process.env.DB_USER || 'postgres',
"password": process.env.DB_PASSWORD || 'password',
"database": process.env.DB_NAME || 'database_production',
"host": process.env.DB_HOST || '127.0.0.1',
"dialect": "postgres"
},
"seederStorage": "sequelize"
}