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 9d41deb commit c3569d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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] || process.env.PORT;

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
2 changes: 1 addition & 1 deletion v2/larkin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ const { Client, Pool } = require("pg");
//get all units and summarize for columns
http.get(
//TODO: change url to match env.
"http://web.staging.svc.macrostrat.org:5432/api/v2/units?all&response=long",
"http://localhost:5000/api/v2/units?all&response=long",
function (res) {
var body = "";
res.on("data", function (chunk) {
Expand Down

0 comments on commit c3569d3

Please sign in to comment.