summaryrefslogtreecommitdiff
path: root/git/hooks/microblog
diff options
context:
space:
mode:
Diffstat (limited to 'git/hooks/microblog')
-rwxr-xr-xgit/hooks/microblog/post-receive2
1 files changed, 2 insertions, 0 deletions
diff --git a/git/hooks/microblog/post-receive b/git/hooks/microblog/post-receive
index 2627861..87d51cc 100755
--- a/git/hooks/microblog/post-receive
+++ b/git/hooks/microblog/post-receive
@@ -4,5 +4,7 @@ APP_DIR=/app/microblog
GIT_WORK_TREE=$APP_DIR git checkout -f
cd $APP_DIR
mkdir -p data
+# push でデプロイしたら管理画面の停止状態を解除する
+sed -i '/^blog$/d' /app/infra/status/stopped.txt 2>/dev/null || true
docker compose up -d --build
echo "Deploy complete: microblog"