diff options
Diffstat (limited to 'git/hooks')
| -rwxr-xr-x | git/hooks/studio-slots/post-receive | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/hooks/studio-slots/post-receive b/git/hooks/studio-slots/post-receive index 4036417..36cd298 100755 --- a/git/hooks/studio-slots/post-receive +++ b/git/hooks/studio-slots/post-receive @@ -3,8 +3,8 @@ set -e APP_DIR=/app/studio-slots GIT_WORK_TREE=$APP_DIR git checkout -f cd $APP_DIR -# ファイルが無いままマウントするとディレクトリが作られてしまうので先に作る -[ -f manual_slots.json ] || echo '{}' > manual_slots.json +# .env(リンキィディンクの会員情報)はリポジトリに入れずサーバーに直接置く +[ -f .env ] || { echo "ERROR: $APP_DIR/.env がありません" >&2; exit 1; } # push でデプロイしたら管理画面の停止状態を解除する sed -i '/^studio$/d' /app/infra/status/stopped.txt 2>/dev/null || true docker compose up -d --build |
