16 lines
758 B
Bash
16 lines
758 B
Bash
# 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
|