Skip to content
This repository has been archived by the owner on May 11, 2019. It is now read-only.

Commit

Permalink
feat(ormconfig): 完成数据库配置
Browse files Browse the repository at this point in the history
  • Loading branch information
ykxhzfj committed Oct 22, 2018
1 parent f30253f commit f8e7808
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ormconfig.js
@@ -0,0 +1,13 @@
const SOURCE_PATH = process.env.NODE_ENV === 'development' ? 'packages' : 'src';
module.exports= {
"type": "postgres",
"host": "localhost",
"port": 5432,
"username": "postgres",
"password": "123456",
"database": "grpc",
"entities": [`${SOURCE_PATH}/**/**.entity{.ts,.js}`],
"synchronize": true,
"logging":null,
"logger":"simple-console"
}

0 comments on commit f8e7808

Please sign in to comment.