[object Object]

← back to Factory Floor

snapshot: 4 file(s) changed, +3 new, ~1 modified

a09f4716fa40abb8707fffd64098e85c777c7517 · 2026-05-13 08:57:53 -0700 · Steve

Files touched

Diff

commit a09f4716fa40abb8707fffd64098e85c777c7517
Author: Steve <steve@designerwallcoverings.com>
Date:   Wed May 13 08:57:53 2026 -0700

    snapshot: 4 file(s) changed, +3 new, ~1 modified
---
 ecosystem.config.cjs |  20 ++++++++++++++++++++
 inventory-missing.sh |  29 +++++++++++++++++++++++++++++
 scripts/snap.mjs     |   7 ++++---
 snapshot.png         | Bin 0 -> 59160 bytes
 4 files changed, 53 insertions(+), 3 deletions(-)

diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs
new file mode 100644
index 0000000..bc751d5
--- /dev/null
+++ b/ecosystem.config.cjs
@@ -0,0 +1,20 @@
+module.exports = {
+  apps: [{
+    name: "factory-floor",
+    script: "server.js",
+    cwd: __dirname,
+    env: {
+      HOST: "0.0.0.0",
+      BIND: "0.0.0.0",
+      FLASK_RUN_HOST: "0.0.0.0",
+      UVICORN_HOST: "0.0.0.0",
+      GUNICORN_BIND: "0.0.0.0:8000",
+      HOSTNAME: "0.0.0.0",
+      VITE_HOST: "0.0.0.0",
+      NEXT_TELEMETRY_DISABLED: "1",
+      PORT: "9936",
+    },
+    autorestart: true,
+    max_memory_restart: "1G",
+  }],
+};
diff --git a/inventory-missing.sh b/inventory-missing.sh
new file mode 100644
index 0000000..df32476
--- /dev/null
+++ b/inventory-missing.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+PROJECTS=(
+  1890swallpaper 1900swallpaper 1940swallpaper 1950swallpaper 1970swallpaper
+  1980swallpaper apartmentwallpaper architecturalwallcoverings bestwallpaperplace
+  blockprintedwallpaper chinoiseriewallpaper designerwallcoverings flockedwallpaper
+  glassbeadedwallpaper goldleafwallpaper grassclothwallpaper greenwallcoverings
+  healthcarewallpaper hollywood-wallcoverings hospitalitywallcoverings hotelwallcoverings
+  madagascarwallpaper micawallpaper mylarwallpaper naturaltextilewallpaper
+  naturalwallcoverings raffiawallcoverings raffiawalls retrowalls saloonwallpaper
+  screenprintedwallpaper silkwallcoverings silkwallpaper stringwallpaper textilewallpaper
+  vinylwallpaper wallpapercanada wallpapercontractor wallpaperdefinitions
+  wallpaperdictionary wallpaperdistributors wallpaperestimator wallpaperglossary
+  wallpaperhistory wallpapersback wallpaperwednesday wallsandfabrics
+)
+for name in "${PROJECTS[@]}"; do
+  dir="$HOME/Projects/$name"
+  [ ! -d "$dir" ] && { echo "$name|NO_DIR"; continue; }
+  entry=""
+  for f in server.js app.js index.js; do
+    [ -f "$dir/$f" ] && { entry="$f"; break; }
+  done
+  [ -z "$entry" ] && { echo "$name|NO_ENTRY"; continue; }
+  [ ! -f "$dir/package.json" ] && { echo "$name|NO_PKG|$entry"; continue; }
+  has_nm="N"
+  [ -d "$dir/node_modules" ] && has_nm="Y"
+  port=$(grep -oE "process\.env\.PORT \|\| [0-9]+" "$dir/$entry" 2>/dev/null | head -1 | grep -oE "[0-9]+$")
+  [ -z "$port" ] && port=$(grep -oE "\.listen\([0-9]+" "$dir/$entry" 2>/dev/null | head -1 | grep -oE "[0-9]+")
+  echo "$name|OK|$entry|port=$port|nm=$has_nm"
+done
diff --git a/scripts/snap.mjs b/scripts/snap.mjs
index 50006e4..bbd1b79 100644
--- a/scripts/snap.mjs
+++ b/scripts/snap.mjs
@@ -8,9 +8,10 @@ const { chromium } = await import('/Users/stevestudio2/Projects/animals/node_mod
 const browser = await chromium.launch();
 const ctx = await browser.newContext({ viewport: { width: 1600, height: 1100 }, deviceScaleFactor: 2 });
 const page = await ctx.newPage();
-await page.goto('http://127.0.0.1:9700', { waitUntil: 'domcontentloaded', timeout: 60000 });
-await page.waitForSelector('main .card', { timeout: 60000 });
-await page.waitForTimeout(4000);
+await page.goto('http://127.0.0.1:9936', { waitUntil: 'domcontentloaded', timeout: 60000 });
+// Wait until the bigred tile is actually rendered (means /api/state populated)
+await page.waitForSelector('.bigred', { timeout: 90000 });
+await page.waitForTimeout(1500);
 await page.screenshot({ path: OUT, fullPage: true });
 await browser.close();
 console.log(`✓ ${OUT}`);
diff --git a/snapshot.png b/snapshot.png
new file mode 100644
index 0000000..ccbf279
Binary files /dev/null and b/snapshot.png differ

← 282ec29 feat: Big Red tile w/ spinning brain + model picker (Ollama  ·  back to Factory Floor  ·  fix broken URL-strip regex (was a parse error) + escape untr 2188905 →