ログインできた
This commit is contained in:
parent
326384957c
commit
dfbc06f858
18 changed files with 853 additions and 167 deletions
20
ormconfig.js
Normal file
20
ormconfig.js
Normal file
|
@ -0,0 +1,20 @@
|
|||
const fs = require('fs');
|
||||
|
||||
const entities = require('./built/db').entities;
|
||||
|
||||
const config = Object.freeze(JSON.parse(fs.readFileSync(__dirname + '/config.json', 'utf-8')));
|
||||
|
||||
module.exports = {
|
||||
type: 'postgres',
|
||||
host: config.db.host,
|
||||
port: config.db.port,
|
||||
username: config.db.user,
|
||||
password: config.db.pass,
|
||||
database: config.db.db,
|
||||
extra: config.db.extra,
|
||||
entities: entities,
|
||||
migrations: ['migration/*.ts'],
|
||||
cli: {
|
||||
migrationsDir: 'migration'
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue