summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryyamashita <yyamashita@hetzner.yyamashita.com>2026-11-01 09:19:36 +0900
committeryyamashita <yyamashita@hetzner.yyamashita.com>2026-11-01 09:19:36 +0900
commit1e0818240f1d022f0aa065402a3fd602c1db61cf (patch)
treeeb754f11fcd76be3fe6d585344db6b7b889b075b
parentf7cfad7883556def4f1c277704a13620642c7dbc (diff)
studio-slots: .env 必須にして manual_slots.json をやめる
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
-rwxr-xr-xgit/hooks/studio-slots/post-receive4
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