summaryrefslogtreecommitdiff
path: root/scripts/server-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/server-setup.sh')
-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."