Skip to content

Commit

Permalink
Updated app host
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidOkulski committed Jan 9, 2025
1 parent ba532cd commit a4c5b2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion app/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "client",
"version": "0.1.0",
"private": true,
"proxy": "http://localhost:3000",
"dependencies": {
"@bcgov/citz-imb-sso-react": "^1.0.1",
"@bcgov/design-system-react-components": "^0.4.0",
Expand Down
8 changes: 4 additions & 4 deletions app/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ app.get('*', (req, res) => {
res.sendFile(path.join(__dirname, '../client/build', 'index.html'));
});

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

const host = process.env.HOST || 'localhost';
app.listen(port, host, () => {
console.log(`Server running on http://${host}:${port}`);
});

0 comments on commit a4c5b2b

Please sign in to comment.