Add production deployment documentation to CLAUDE.md
- Production server: ssh akamai - Container path: /root/container-data/major-domo - Service name: discord-app - Full release workflow documented Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
a891bb962a
commit
249c17a64c
32
CLAUDE.md
32
CLAUDE.md
@ -527,6 +527,38 @@ docker push manticorum67/major-domo-discordapp:latest
|
|||||||
| Discord Bot v2 | `manticorum67/major-domo-discordapp` |
|
| Discord Bot v2 | `manticorum67/major-domo-discordapp` |
|
||||||
| Database API | `manticorum67/major-domo-database` |
|
| Database API | `manticorum67/major-domo-database` |
|
||||||
|
|
||||||
|
### 🚀 Production Deployment
|
||||||
|
|
||||||
|
**Production Server Access:**
|
||||||
|
```bash
|
||||||
|
ssh akamai
|
||||||
|
```
|
||||||
|
|
||||||
|
**Deployment Commands:**
|
||||||
|
```bash
|
||||||
|
# SSH to production and update the container
|
||||||
|
ssh akamai "cd /root/container-data/major-domo && docker compose pull discord-app && docker compose up -d discord-app"
|
||||||
|
|
||||||
|
# Or manually on the server:
|
||||||
|
cd /root/container-data/major-domo
|
||||||
|
docker compose pull discord-app
|
||||||
|
docker compose up -d discord-app
|
||||||
|
|
||||||
|
# Verify deployment
|
||||||
|
docker ps | grep major-domo-discord-app
|
||||||
|
docker logs major-domo-discord-app-1 --tail 50
|
||||||
|
```
|
||||||
|
|
||||||
|
**Full Release Workflow:**
|
||||||
|
1. Commit changes to main
|
||||||
|
2. Push to GitHub: `git push`
|
||||||
|
3. Update VERSION file (e.g., `echo "2.26.0" > VERSION`)
|
||||||
|
4. Build Docker image: `docker build -t manticorum67/major-domo-discordapp:X.Y.Z -t manticorum67/major-domo-discordapp:latest .`
|
||||||
|
5. Push to Docker Hub: `docker push manticorum67/major-domo-discordapp:X.Y.Z && docker push manticorum67/major-domo-discordapp:latest`
|
||||||
|
6. Commit version bump and create tag: `git add VERSION && git commit -m "Bump version to X.Y.Z" && git tag vX.Y.Z`
|
||||||
|
7. Push commit and tag: `git push && git push --tags`
|
||||||
|
8. Deploy to production: `ssh akamai "cd /root/container-data/major-domo && docker compose pull discord-app && docker compose up -d discord-app"`
|
||||||
|
|
||||||
## 📊 Monitoring and Logs
|
## 📊 Monitoring and Logs
|
||||||
|
|
||||||
### Log Files
|
### Log Files
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user