diff options
Diffstat (limited to 'git/hooks/todo')
| -rw-r--r-- | git/hooks/todo/post-receive | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git/hooks/todo/post-receive b/git/hooks/todo/post-receive index 645b856..0952ee5 100644 --- a/git/hooks/todo/post-receive +++ b/git/hooks/todo/post-receive @@ -4,5 +4,7 @@ APP_DIR=/app/todo GIT_WORK_TREE=$APP_DIR git checkout -f cd $APP_DIR mkdir -p data +# push でデプロイしたら管理画面の停止状態を解除する +sed -i '/^todo$/d' /app/infra/status/stopped.txt 2>/dev/null || true docker compose up -d --build echo "Deploy complete: todo" |
