Commit e21e96f 1 parent 6477524 commit e21e96f Copy full SHA for e21e96f
File tree 3 files changed +15
-16
lines changed
3 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ const server = require("./api/server");
2
2
3
3
const port = process . env . PORT || 2000 ;
4
4
5
- server . listen ( 2000 , ( ) => {
6
- console . log ( `\n Listening on port ${ 2000 } \n` ) ;
5
+ server . listen ( port , ( ) => {
6
+ console . log ( `\n Listening on port ${ port } \n` ) ;
7
7
} ) ;
Original file line number Diff line number Diff line change 1
- const pgConnection = process . env . DATABASE_URL || "postgresql://postgres@locathost/api/events"
1
+ const pgConnection =
2
+ process . env . DATABASE_URL || "postgresql://postgres@localhost/api/events" ;
2
3
3
4
module . exports = {
4
-
5
5
development : {
6
- client : ' sqlite3' ,
6
+ client : " sqlite3" ,
7
7
useNullAsDefault : true ,
8
8
connection : {
9
- filename : ' ./data/potluck.db3'
9
+ filename : " ./data/potluck.db3" ,
10
10
} ,
11
11
migrations : {
12
- directory : "./data/migrations"
12
+ directory : "./data/migrations" ,
13
13
} ,
14
14
seeds : {
15
- directory : "./data/seeds"
16
- }
15
+ directory : "./data/seeds" ,
16
+ } ,
17
17
} ,
18
18
19
19
production : {
20
- client : 'pg' ,
20
+ client : "pg" ,
21
21
connection : pgConnection ,
22
22
pool : {
23
23
min : 2 ,
24
- max : 10
24
+ max : 10 ,
25
25
} ,
26
26
migrations : {
27
- directory : "./data/migrations"
27
+ directory : "./data/migrations" ,
28
28
} ,
29
29
seeds : {
30
- directory : "./data/seeds"
31
- }
32
- }
33
-
30
+ directory : "./data/seeds" ,
31
+ } ,
32
+ } ,
34
33
} ;
You can’t perform that action at this time.
0 commit comments