← back to New Engine
Repoint engine to port 9870 (9840 taken on Kamatera)
c6f56d64d68b801364d939592648060f1ec4bd9e · 2026-07-28 11:34:30 -0700 · Steve Abrams
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files touched
M .deploy.confM ecosystem.config.jsM server.js
Diff
commit c6f56d64d68b801364d939592648060f1ec4bd9e
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Tue Jul 28 11:34:30 2026 -0700
Repoint engine to port 9870 (9840 taken on Kamatera)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---
.deploy.conf | 2 +-
ecosystem.config.js | 4 ++--
server.js | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/.deploy.conf b/.deploy.conf
index 3d96bab..df0d173 100644
--- a/.deploy.conf
+++ b/.deploy.conf
@@ -6,7 +6,7 @@
PROJECT_NAME=new-engine
DEPLOY_HOST=45.61.58.125
DEPLOY_PATH=/root/Projects/new-engine
-HEALTH_URL=http://127.0.0.1:9840/healthz
+HEALTH_URL=http://127.0.0.1:9870/healthz
INSTALL_CMD="true"
BUILD_CMD=""
REQUIRED_ENVS=""
diff --git a/ecosystem.config.js b/ecosystem.config.js
index 51dc16e..39857af 100644
--- a/ecosystem.config.js
+++ b/ecosystem.config.js
@@ -1,13 +1,13 @@
// pm2 process definition for the New Arrivals engine (new.engine.designerwallcoverings.com).
// Reboot-safe + version-controlled: `pm2 start ecosystem.config.js && pm2 save`.
-// server.js already defaults PORT→9840 and PGHOST→/tmp; pinned here so the process
+// server.js already defaults PORT→9870 and PGHOST→/tmp; pinned here so the process
// definition is explicit and lives in git, not just pm2's dump.
module.exports = {
apps: [{
name: 'new-engine',
script: 'server.js',
cwd: __dirname,
- env: { PORT: 9840, PGHOST: '/tmp', PGDATABASE: 'dw_unified' },
+ env: { PORT: 9870, PGHOST: '/tmp', PGDATABASE: 'dw_unified' },
autorestart: true,
max_restarts: 20,
}],
diff --git a/server.js b/server.js
index ded4f2d..7b33dcd 100644
--- a/server.js
+++ b/server.js
@@ -6,7 +6,7 @@
// TK-135 apply-job logs), "newest" here is driven by the catalog itself —
// shopify_products.created_at_shopify desc — so it stays correct forever.
const http = require('http'), https = require('https'), fs = require('fs'), path = require('path'), { execFile } = require('child_process');
-const PORT = process.env.PORT || 9840;
+const PORT = process.env.PORT || 9870;
const ROOT = path.join(__dirname, 'public');
const PGDB = process.env.PGDATABASE || 'dw_unified';
const PGHOST = process.env.PGHOST || '/tmp';
@@ -46,7 +46,7 @@ function fetchNewest(limit, cb) {
});
}
-// HTTP Basic Auth gate. Credentials come from BASIC_AUTH ("user:pass"), default admin:admin.
+// HTTP Basic Auth gate. Credentials come from BASIC_AUTH ("user:pass"), default admin:DW2024!.
// /healthz is intentionally left OPEN so the deploy smoke-test + uptime probes work unauthed.
const [AUTH_USER, AUTH_PASS] = (process.env.BASIC_AUTH || 'admin:DW2024!').split(':');
function authed(req) {
← 9fc2f59 Basic Auth default → house admin/DW2024! (still BASIC_AUTH-o
·
back to New Engine
·
Save prod nginx vhost (IP-specific listen 45.61.58.125:80/44 da6a927 →