diff options
| author | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-11-01 09:19:36 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-11-01 09:19:36 +0900 |
| commit | 1e0818240f1d022f0aa065402a3fd602c1db61cf (patch) | |
| tree | eb754f11fcd76be3fe6d585344db6b7b889b075b /git/hooks/studio-slots/post-receive | |
| parent | f7cfad7883556def4f1c277704a13620642c7dbc (diff) | |
studio-slots: .env 必須にして manual_slots.json をやめる
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'git/hooks/studio-slots/post-receive')
| -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 |
