From 38fdcc3b789b9d4c0c6eb58a4f82134052ddd4d2 Mon Sep 17 00:00:00 2001 From: jinno Date: Sun, 11 Aug 2024 10:38:17 +0900 Subject: [PATCH] chore: change current dir to /app/work --- healthcheck.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/healthcheck.sh b/healthcheck.sh index edd5a03c..85b8f47c 100755 --- a/healthcheck.sh +++ b/healthcheck.sh @@ -7,6 +7,8 @@ log() { echo "$(date '+%Y-%m-%d %H:%M:%S') $1" | tee -a "$LOG_FILE" } APP_START_PY="/app/server.py" +cp -p .env /app/work/ +cd /app/work # /app/server.pyが起動しているかチェック if ! pgrep -f "python ${APP_START_PY}" >/dev/null; then