Skip to content

Commit

Permalink
redirecting port and url domains to use staging env
Browse files Browse the repository at this point in the history
  • Loading branch information
amyfromandi committed Aug 26, 2024
1 parent 6b27662 commit ff5356e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ app.use("/", v2);

app.set("json spaces", 2);

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

app.start = function () {
app.listen(app.port, function () {
Expand Down
3 changes: 2 additions & 1 deletion v2/larkin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,8 @@ const { Client, Pool } = require("pg");
unitSummary: function (callback) {
// get all units and summarize for columns
http.get(
"http://localhost:5550/v2/units?all&response=long",
//TODO: cahnge url to match env.
"https://web.staging.svc.macrostrat.org/api/v2/units?all&response=long",
function (res) {
var body = "";

Expand Down

0 comments on commit ff5356e

Please sign in to comment.