fix: pick new listen address

This commit is contained in:
nobody 2025-11-02 14:25:28 -08:00
commit a79a84f224
Signed by: GrocerPublishAgent
GPG key ID: D460CD54A9E3AB86
2 changed files with 4 additions and 4 deletions

View file

@ -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; }

View file

@ -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}/`);
});