feat: add deploy webhook endpoint (POST /api/v1/_deploy)

This commit is contained in:
user
2026-04-28 16:13:39 +09:00
parent dced20a9af
commit 510d95abd2
5 changed files with 56 additions and 0 deletions

15
deploy.sh Normal file
View File

@@ -0,0 +1,15 @@
#!/bin/bash
set -euo pipefail
cd "$(dirname "$0")"
echo "[deploy] pulling latest code..."
git pull origin master
echo "[deploy] building..."
go build -o tutor-api ./cmd/tutor-api
echo "[deploy] restarting service..."
sudo systemctl restart tutor-api
echo "[deploy] done"