summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoryyamashita <yyamashita@hetzner.yyamashita.com>2026-05-17 11:18:23 +0900
committeryyamashita <yyamashita@hetzner.yyamashita.com>2026-05-17 11:22:46 +0900
commitfd4ea38bd52a8aa8a31dbb3fd9c7fdfe5d960ec4 (patch)
treea2579f0419b0bf799daf3e0150b3f7173abde3f2 /scripts
parentadacc4c7783a47cb75239c67cc0746e6edb70775 (diff)
Defer repo/hook setup to hetzner-infra/scripts/install.shHEADmaster
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/server-setup.sh27
1 files changed, 11 insertions, 16 deletions
diff --git a/scripts/server-setup.sh b/scripts/server-setup.sh
index 99bef9b..12cd588 100755
--- a/scripts/server-setup.sh
+++ b/scripts/server-setup.sh
@@ -1,17 +1,12 @@
#!/bin/bash
-# Run once on the Hetzner VPS (as root) after hetzner-infra setup
-set -e
-
-APP_DIR=/app/tokyo-livehouse-events
-REPO_DIR=/var/git/tokyo-livehouse-events.git
-
-mkdir -p "$APP_DIR"
-mkdir -p "$REPO_DIR"
-git init --bare "$REPO_DIR"
-
-echo ""
-echo "Setup complete. On your local machine, run:"
-echo " git remote add hetzner root@<server-ip>:$REPO_DIR"
-echo ""
-echo "Then install hooks from hetzner-infra:"
-echo " ssh root@<server-ip> 'bash /app/infra/scripts/install-hooks.sh'"
+# リポジトリ作成・フックのインストールは hetzner-infra の install.sh が担う。
+# このスクリプトは参照用として残している。
+#
+# セットアップ手順:
+# 1. hetzner-infra の server-setup.sh を実行
+# 2. git push hetzner master (hetzner-infra)
+# 3. ssh root@<server-ip> 'bash /app/infra/scripts/install.sh'
+# → /var/git/tokyo-livehouse-events.git と /app が作成される
+# 4. git remote add hetzner root@<server-ip>:/var/git/tokyo-livehouse-events.git
+# 5. git push hetzner master
+echo "See hetzner-infra/scripts/install.sh for server setup."