- Added deploy skill (SKILL.md) with dev/prod instructions - Moved deploy_prod.sh, deploy_dev.sh, dev_deploy.sh, speed_take.sh - Updated settings.local.json: new script paths, git merge/push permissions, auto-deploy hook on merge to master - Removed dev_deploy.sh and speed_take.sh from .gitignore Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1.3 KiB
1.3 KiB
name, description
| name | description |
|---|---|
| deploy | Use when deploying this project to dev or prod environments, or when asked to run, ship, release, or push to a server. |
Deploy
Environments
Dev (/deploy dev)
bash .claude/skills/deploy/deploy_dev.sh
Builds and restarts the service on the dev server (ubuntu).
Prod (/deploy prod)
Prod deploy requires being on master. Steps:
- Ensure all changes are committed and pushed to
master - Run:
bash .claude/skills/deploy/deploy_prod.sh
deploy_prod.sh will:
- Pull latest code on ubuntu build host
- Build
linux/amd64Docker image and push to registry - SSH into ECS: stop old container, start new one with
-env=prod
Quick Reference
| Target | Command | Branch required |
|---|---|---|
| Dev | bash .claude/skills/deploy/deploy_dev.sh |
any |
| Prod | bash .claude/skills/deploy/deploy_prod.sh |
master or main |
Common Mistakes
- Running
deploy_prod.shon a feature branch → script guards against this (exits with error) - Forgetting to merge/push before deploy → ubuntu build host pulls from remote, so local-only commits won't be included
- Prod logs go to
/app/logs/app.loginside the container, not stdout — usedocker exec doc_ai tail -f /app/logs/app.logon ECS to tail them