24 lines
698 B
Markdown
24 lines
698 B
Markdown
|
|
---
|
||
|
|
name: deploy-both
|
||
|
|
description: Deploy all changes to both Archipelago servers
|
||
|
|
disable-model-invocation: true
|
||
|
|
allowed-tools: Bash, Read
|
||
|
|
---
|
||
|
|
|
||
|
|
Deploy all changes to BOTH servers (primary: 192.168.1.228, secondary: 192.168.1.198).
|
||
|
|
|
||
|
|
## Steps
|
||
|
|
|
||
|
|
1. Run:
|
||
|
|
```bash
|
||
|
|
./scripts/deploy-to-target.sh --both
|
||
|
|
```
|
||
|
|
|
||
|
|
2. This builds on the primary server first, then copies built artifacts to the secondary.
|
||
|
|
|
||
|
|
3. Verify both servers respond:
|
||
|
|
```bash
|
||
|
|
sshpass -p 'EwPDR8q45l0Upx@' ssh -o StrictHostKeyChecking=no archipelago@192.168.1.228 'systemctl is-active archipelago'
|
||
|
|
sshpass -p 'EwPDR8q45l0Upx@' ssh -o StrictHostKeyChecking=no archipelago@192.168.1.198 'systemctl is-active archipelago'
|
||
|
|
```
|