Skip to content

Commit e21e96f

Browse files
committed
wip
1 parent 6477524 commit e21e96f

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

data/potluck.db3

0 Bytes
Binary file not shown.

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ const server = require("./api/server");
22

33
const port = process.env.PORT || 2000;
44

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`);
77
});

knexfile.js

+13-14
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
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";
23

34
module.exports = {
4-
55
development: {
6-
client: 'sqlite3',
6+
client: "sqlite3",
77
useNullAsDefault: true,
88
connection: {
9-
filename: './data/potluck.db3'
9+
filename: "./data/potluck.db3",
1010
},
1111
migrations: {
12-
directory: "./data/migrations"
12+
directory: "./data/migrations",
1313
},
1414
seeds: {
15-
directory: "./data/seeds"
16-
}
15+
directory: "./data/seeds",
16+
},
1717
},
1818

1919
production: {
20-
client: 'pg',
20+
client: "pg",
2121
connection: pgConnection,
2222
pool: {
2323
min: 2,
24-
max: 10
24+
max: 10,
2525
},
2626
migrations: {
27-
directory: "./data/migrations"
27+
directory: "./data/migrations",
2828
},
2929
seeds: {
30-
directory: "./data/seeds"
31-
}
32-
}
33-
30+
directory: "./data/seeds",
31+
},
32+
},
3433
};

0 commit comments

Comments
 (0)