1.6 KiB
1.6 KiB
| id | type | title | tags | importance | confidence | created | updated | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 5adcad70-654d-4733-b03c-b509123dc6bb | configuration | Deploy script for discord-app-v2: .scripts/deploy.sh usage and pre-flight steps |
|
0.6 | 0.8 | 2026-02-22T22:41:53.939923+00:00 | 2026-02-22T22:41:53.939923+00:00 |
Deploy Script for discord-app-v2
Project
major-domo / discord-app-v2
Location
.scripts/deploy.sh in the discord-app-v2 repo root.
Usage
.scripts/deploy.sh # Interactive (prompts for confirmation)
.scripts/deploy.sh -y # Skip confirmation prompt
What It Does
- SSHes to
akamai(uses SSH alias from~/.ssh/config) - Pulls latest Docker image:
manticorum67/major-domo-discordapp:latest - Restarts the container via
docker compose - Waits 5 seconds
- Shows container status and last 10 log lines
- Prints a rollback command with the previous image digest
Pre-flight Checklist
- Ensure local branch is on
main:git checkout main - Ensure local
mainis up to date withorigin/main:git pull origin main - If local
mainhas diverged (e.g., from rebased commits after a forced push to remote), sync with:git reset --hard origin/main - Confirm CI has built and pushed the new image before deploying
Container Details
- Host:
akamai(SSH alias) - Container name:
major-domo-discord-app-1 - Image:
manticorum67/major-domo-discordapp(no dash between "discord" and "app") - Compose dir:
~/container-data/major-domo
Post-deploy Verification
ssh akamai "docker logs --since 5m major-domo-discord-app-1"