---
name: deploy
description: Deploy all changes to the live Archipelago server
disable-model-invocation: true
allowed-tools: Bash, Read
---

Deploy all changes to the live server (192.168.1.228).

## Steps

1. Run the deploy script from the project root:
   ```bash
   ./scripts/deploy-to-target.sh --live
   ```

2. This syncs frontend and backend code, builds the Rust backend **on the server** (never locally on macOS), deploys frontend to `/opt/archipelago/web-ui/`, deploys backend binary to `/usr/local/bin/archipelago`, and restarts systemd + nginx.

3. After deploy completes, verify the server is healthy:
   ```bash
   ssh -i ~/.ssh/archipelago-deploy archipelago@192.168.1.228 'systemctl is-active archipelago nginx && sudo journalctl -u archipelago -n 10 --no-pager'
   ```

4. Report whether the deploy succeeded and if any errors appeared in the logs.
