← back to Sublease Agentabrams
Live on Kamatera: snapshot in data/, prod env note
a14fd4a2d1fedb59b8a3ea01cc870c41bb95ca39 · 2026-07-20 12:22:27 -0700 · Steve
Files touched
M .deploy.confA tmp-shot-live.js
Diff
commit a14fd4a2d1fedb59b8a3ea01cc870c41bb95ca39
Author: Steve <steve@designerwallcoverings.com>
Date: Mon Jul 20 12:22:27 2026 -0700
Live on Kamatera: snapshot in data/, prod env note
---
.deploy.conf | 2 +-
tmp-shot-live.js | 14 ++++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.deploy.conf b/.deploy.conf
index a0de9b7..4db393a 100644
--- a/.deploy.conf
+++ b/.deploy.conf
@@ -6,5 +6,5 @@ DEPLOY_PATH=/root/public-projects/sublease-agentabrams
HEALTH_URL=http://localhost:9714/api/health
INSTALL_CMD="npm ci --omit=dev"
BUILD_CMD=""
-REQUIRED_ENVS="PGHOST PGDATABASE"
+REQUIRED_ENVS="USE_SNAPSHOT" # prod runs USE_SNAPSHOT=1 (serves data/snapshot.json)
RSYNC_EXTRA_EXCLUDES="tmp-server.log data/*.db"
diff --git a/tmp-shot-live.js b/tmp-shot-live.js
new file mode 100644
index 0000000..1c70611
--- /dev/null
+++ b/tmp-shot-live.js
@@ -0,0 +1,14 @@
+const { chromium } = require('playwright-core');
+(async () => {
+ const b = await chromium.launch({ executablePath: process.env.CHROMIUM });
+ const ctx = await b.newContext({ httpCredentials: { username:'Boomer', password:'Sublease2024!' }, viewport:{width:1400,height:1600} });
+ const pg = await ctx.newPage();
+ await pg.goto('https://sublease.agentabrams.com/', { waitUntil:'networkidle', timeout:30000 });
+ await pg.waitForTimeout(2500);
+ await pg.screenshot({ path:'tmp-home.png', fullPage:true });
+ const pg2 = await ctx.newPage();
+ await pg2.goto('https://sublease.agentabrams.com/broker/premierworkspaces', { waitUntil:'networkidle', timeout:30000 });
+ await pg2.waitForTimeout(1500);
+ await pg2.screenshot({ path:'tmp-broker.png', fullPage:true });
+ await b.close();
+})();
← 14468ce Add snapshot backend (USE_SNAPSHOT) + export-snapshot: deplo
·
back to Sublease Agentabrams
·
Browserbase crawler for CBRE/NAI (consent-filter, nested-add 0276f06 →