From 509e2e82a3458de1ab0c8e0685c48b21ccba8dba Mon Sep 17 00:00:00 2001 From: Ty Date: Mon, 14 Sep 2026 02:14:08 -0700 Subject: [PATCH] Add M1-6 deploy script --- DEPLOY-M1-6.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 DEPLOY-M1-6.sh diff --git a/DEPLOY-M1-6.sh b/DEPLOY-M1-6.sh new file mode 100644 index 0000000..910f560 --- /dev/null +++ b/DEPLOY-M1-6.sh @@ -0,0 +1,15 @@ +# M1-6 UAT Deploy — run these on 192.168.1.202 + +# 1. Copy the repo to .202 (from THIS machine, /home/ty): +rsync -az --exclude node_modules --exclude .svelte-kit --exclude build \ + /home/ty/SlabUploader/ ty@192.168.1.202:SlabUploader/ + +# 2. Build the image on .202: +ssh ty@192.168.1.202 "cd SlabUploader/frontend && docker build -t slabuploader-m1 . && \ + docker rm -f slabuploader-m1 2>/dev/null; \ + docker run -d --name slabuploader-m1 --restart unless-stopped -p 18080:80 slabuploader-m1 && \ + echo 'Container running at http://192.168.1.202:18080'" + +# 3. Verify from your phone: +# Open http://192.168.1.202:18080 in Safari/Chrome +# Flow: Add photo → Mask (green sheet, sensitivity) → Approve → Axis → Approve → Measure → Calculate