store: Deploy script for discord-app-v2: .scripts/deploy.sh usage and pre-flight steps

This commit is contained in:
Cal Corum 2026-02-22 16:41:53 -06:00
parent b2eae87985
commit d3d36b0bce

View File

@ -0,0 +1,49 @@
---
id: 5adcad70-654d-4733-b03c-b509123dc6bb
type: configuration
title: "Deploy script for discord-app-v2: .scripts/deploy.sh usage and pre-flight steps"
tags: [major-domo, deployment, discord-bot, akamai, docker, configuration]
importance: 0.6
confidence: 0.8
created: "2026-02-22T22:41:53.939923+00:00"
updated: "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
```bash
.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
```bash
ssh akamai "docker logs --since 5m major-domo-discord-app-1"
```