teacher-tools/deploy-api.sh

9 lines
255 B
Bash
Raw Permalink Normal View History

2024-12-30 16:55:30 +00:00
#!/usr/bin/env bash
set -e
set -o pipefail
ssh -f root@andrewlalis.com 'systemctl stop teacher-tools-api.service'
scp api/teacher-tools-api root@andrewlalis.com:/opt/teacher-tools/
ssh -f root@andrewlalis.com 'systemctl start teacher-tools-api.service'