uek-109-LBb/counter_kand/backend/config/config.js

29 lines
950 B
JavaScript
Raw Normal View History

2024-07-02 10:54:15 +02:00
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"
}