mirror of
https://github.com/sergeyyarkov/educt-server.git
synced 2026-10-12 02:39:09 +03:00
33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
JavaScript
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const Env_1 = __importDefault(global[Symbol.for('ioc.use')]("Adonis/Core/Env"));
|
|
const databaseConfig = {
|
|
connection: Env_1.default.get('DB_CONNECTION'),
|
|
connections: {
|
|
pg: {
|
|
client: 'pg',
|
|
connection: {
|
|
host: Env_1.default.get('PG_HOST'),
|
|
port: Env_1.default.get('PG_PORT'),
|
|
user: Env_1.default.get('PG_USER'),
|
|
password: Env_1.default.get('PG_PASSWORD', ''),
|
|
database: Env_1.default.get('PG_DB_NAME'),
|
|
},
|
|
migrations: {
|
|
disableRollbacksInProduction: true,
|
|
naturalSort: true,
|
|
tableName: 'migrations',
|
|
},
|
|
seeders: {
|
|
paths: ['./database/seeders/MainSeeder'],
|
|
},
|
|
healthCheck: true,
|
|
debug: false,
|
|
},
|
|
},
|
|
};
|
|
exports.default = databaseConfig;
|
|
//# sourceMappingURL=database.js.map
|