claude-memory/graph/configurations/deploy-script-for-discord-app-v2-scriptsdeploysh-usage-and-p-5adcad.md

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
major-domo
deployment
discord-bot
akamai
docker
configuration
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

  1. SSHes to akamai (uses SSH alias from ~/.ssh/config)
  2. Pulls latest Docker image: manticorum67/major-domo-discordapp:latest
  3. Restarts the container via docker compose
  4. Waits 5 seconds
  5. Shows container status and last 10 log lines
  6. Prints a rollback command with the previous image digest

Pre-flight Checklist

  1. Ensure local branch is on main: git checkout main
  2. Ensure local main is up to date with origin/main: git pull origin main
  3. If local main has diverged (e.g., from rebased commits after a forced push to remote), sync with: git reset --hard origin/main
  4. 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"