Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .claude/commands/deploy-prod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Deploy to Production

Deploy the latest main branch to the production server.

## Server

- **SSH**: `ssh root@167.235.133.87`
- **App directory**: `/opt/pseuno`

## Steps

1. SSH into the server
2. Pull the latest code from main
3. Rebuild and restart containers
4. Verify the deploy succeeded

Run these commands over SSH:

```bash
ssh root@167.235.133.87 "cd /opt/pseuno && git pull && docker compose -f docker-compose.prod.yml up -d --build && docker compose -f docker-compose.prod.yml ps && sleep 5 && curl -s localhost:8000/health"
```

If only the backend changed, you can rebuild just that service:
```bash
ssh root@167.235.133.87 "cd /opt/pseuno && git pull && docker compose -f docker-compose.prod.yml up -d --build backend && sleep 5 && curl -s localhost:8000/health"
```

If only the frontend changed, rebuild just frontend:
```bash
ssh root@167.235.133.87 "cd /opt/pseuno && git pull && docker compose -f docker-compose.prod.yml up -d --build frontend"
```
Binary file modified frontend/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.