Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: pr feedback - read port from env var
  • Loading branch information
gregjopa committed Aug 15, 2023
commit e91ab1e7884a4b1beabb43b5c3572f4014bbdf97
6 changes: 4 additions & 2 deletions standard-integration/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ app.get('/', (req, res) => {
res.sendFile(path.resolve('./index.html'));
});

app.listen(8888, () => {
console.log('listening on http://localhost:8888/');
const PORT = Number(process.env.PORT) || 8888;

app.listen(PORT, () => {
console.log(`listening on http://localhost:${PORT}/`);
});