Skip to content

Commit

Permalink
adding logging
Browse files Browse the repository at this point in the history
  • Loading branch information
amyfromandi committed Aug 27, 2024
1 parent c3569d3 commit 0d687a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ app.use("/", v2);
app.set("json spaces", 2);

//TODO: update port to designated env.
app.port = process.argv[2] || process.env.PORT;
app.port = process.argv[2] || 5000;

app.start = function () {
app.listen(app.port, function () {
Expand Down
2 changes: 1 addition & 1 deletion v2/credentials.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
exports.pg = {
host: process.env.host,
port: process.env.PORT,
port: process.env.port,
user: process.env.user,
password: process.env.password,
database: process.env.database
Expand Down

0 comments on commit 0d687a0

Please sign in to comment.