fix: pick new listen address
This commit is contained in:
parent
8d5bce4bfb
commit
a79a84f224
2 changed files with 4 additions and 4 deletions
|
|
@ -50,7 +50,7 @@ ssh=deploy-peoplesgrocers-website
|
|||
base=/home/peoplesgrocers
|
||||
project=salience
|
||||
nginx_conf=/etc/nginx/sites-available/$project
|
||||
service_listen_address=127.10.143.212
|
||||
service_listen_address=127.221.91.58
|
||||
local_nginx_snippet="$HOME/src/work/infra/servers/chicago-web01/nginx/snippets/qwik-city-apps/salience.conf"
|
||||
|
||||
test -d frontend/dist || { echo 'no frontend/dist/'; exit 1; }
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ const buildDir = join(distDir, "build");
|
|||
const assetsDir = join(distDir, "assets");
|
||||
|
||||
// Allow for dynamic port
|
||||
const PORT = process.env.PORT ?? 3000;
|
||||
const PORT = parseInt(process.env.PORT ?? '3000', 10);
|
||||
|
||||
// Create the Qwik City Node middleware
|
||||
const { router, notFound } = createQwikCity({
|
||||
|
|
@ -67,7 +67,7 @@ app.use(router);
|
|||
app.use(notFound);
|
||||
|
||||
// Start the express server
|
||||
app.listen(PORT, () => {
|
||||
app.listen(PORT, '127.221.91.58', () => {
|
||||
/* eslint-disable */
|
||||
console.log(`Server started: http://localhost:${PORT}/`);
|
||||
console.log(`Server started: http://127.221.91.58:${PORT}/`);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue