| name | deploy-website-sandbox |
| description | Deploy the Mycosoft website to the Sandbox VM (192.168.0.187). Use when the user asks to deploy, push to sandbox, rebuild the website container, or update the live site. |
Deploy Website to Sandbox VM
CRITICAL: Execute Deployment Yourself — Never Hand Off to User
NEVER ask the user to deploy, SSH, run scripts, or debug. You MUST execute the deployment yourself. If it fails, fix the failure (Dockerfile, pnpm, script errors) and retry until it succeeds. Never stop with "run this manually" or "you need to fix X." Load credentials from .credentials.local before SSH. See rule agent-must-execute-operations.mdc.
Prerequisites
- Code committed and pushed to GitHub (main branch)
- SSH access to Sandbox VM at 192.168.0.187
Deployment Steps
Copy this checklist and track progress:
Deployment Progress:
- [ ] Step 1: SSH to Sandbox VM
- [ ] Step 2: Pull latest code
- [ ] Step 3: Stop and remove old container
- [ ] Step 4: Rebuild Docker image
- [ ] Step 5: Start new container with NAS mount
- [ ] Step 6: Health check
- [ ] Step 7: Purge Cloudflare cache
- [ ] Step 8: Verify deployment
Step 1: SSH to Sandbox VM
ssh mycosoft@192.168.0.187
Step 2: Pull latest code
cd /opt/mycosoft/website
git fetch origin
git reset --hard origin/main
Step 3: Stop and remove old container
docker stop mycosoft-website
docker rm mycosoft-website
Step 4: Rebuild Docker image (no cache)
docker build -t mycosoft-always-on-mycosoft-website:latest --no-cache .
Step 5: Start new container with NAS volume mount