Skip to content

Commit d224e9c

Browse files
committed
Merge branch 'master' into dev
2 parents 37491d2 + b0606d9 commit d224e9c

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

sample.env

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
NODE_ENV=dev
22
PORT=3001
3-
DB_HOST=localhost
4-
DB_USER=c7f
5-
DB_PASSWORD=c7f
6-
DB_NAME=c7f
73
JWT_SECRET=secret
4+
DATABASE_URL=postgres://c7f:c7f@localhost:5432/c7f

src/knexfile.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,7 @@ dotenv.config();
55

66
const config = {
77
client: 'postgres',
8-
connection: {
9-
host: process.env.DB_HOST || '127.0.0.1',
10-
port: parseInt(process.env.DB_PORT, 10) || 5432,
11-
user: process.env.DB_USER || 'c7f',
12-
password: process.env.DB_PASSWORD || 'c7f',
13-
database: process.env.DB_NAME || 'c7f',
14-
},
8+
connection: process.env.DATABASE_URL,
159
};
1610

1711
export default config;

0 commit comments

Comments
 (0)