Skip to content

Commit

Permalink
Update server port
Browse files Browse the repository at this point in the history
  • Loading branch information
Luan-vP committed Dec 20, 2023
1 parent cbf2ec8 commit bc3a955
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ app.get("/", (req, res) => {
res.send({ hi: "there" });
});

const PORT = 5000; // TODO update from Docker env var
const PORT = process.env.PORT || 5100; // TODO update from Docker env var
app.listen(PORT);
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
"main": "index.js",
"engines": {
"node": "21.4.0",
"npm": "10.2.5"
"npm": "10.2.5",
"bun": "1.0.18"
},
"scripts": {
"test": "echo \"Error, no test specified\" && exit 1",
"serve": "bun index.ts"
"start": "bun index.ts",
"build": "echo \"no build script available, please implement\" "
},
"author": "Luan-vP",
"license": "MIT",
Expand Down

0 comments on commit bc3a955

Please sign in to comment.