From 1e0818240f1d022f0aa065402a3fd602c1db61cf Mon Sep 17 00:00:00 2001 From: yyamashita Date: Sun, 1 Nov 2026 09:19:36 +0900 Subject: studio-slots: .env 必須にして manual_slots.json をやめる MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- git/hooks/studio-slots/post-receive | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/hooks/studio-slots/post-receive') 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 -- cgit v1.3