From cc62d128021ed393f190560297ffaa4a2c259290 Mon Sep 17 00:00:00 2001 From: yyamashita Date: Sun, 17 May 2026 11:09:01 +0900 Subject: Manage all server-side git hooks in this repository Add server-hooks//post-receive for all repos and scripts/install-hooks.sh to deploy them manually on the server. Hooks are not auto-installed on git push for security. Co-Authored-By: Claude Sonnet 4.6 --- server-hooks/tokyo-livehouse-events/post-receive | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 server-hooks/tokyo-livehouse-events/post-receive (limited to 'server-hooks/tokyo-livehouse-events/post-receive') diff --git a/server-hooks/tokyo-livehouse-events/post-receive b/server-hooks/tokyo-livehouse-events/post-receive new file mode 100755 index 0000000..8d5ef84 --- /dev/null +++ b/server-hooks/tokyo-livehouse-events/post-receive @@ -0,0 +1,10 @@ +#!/bin/bash +set -e +APP_DIR=/app +GIT_DIR=/var/git/tokyo-livehouse-events.git + +git --work-tree=$APP_DIR --git-dir=$GIT_DIR checkout -f +cd $APP_DIR +mkdir -p data +docker compose up -d --build +echo "Deploy complete: tokyo-livehouse-events" -- cgit v1.2.3