From 35f3064e526d0d4f096f729ec4bf23f710682aa9 Mon Sep 17 00:00:00 2001 From: imnyang Date: Tue, 20 May 2025 06:14:51 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EA=B0=80=20=EC=95=88?= =?UTF-8?q?=EC=8C=93=EC=9D=B4=EB=8B=88=EA=B9=8C=20=EB=B3=BC=EB=A7=9B?= =?UTF-8?q?=EC=9D=B4=20=EC=95=88=EB=82=98=EB=8D=94=EB=9D=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ Dockerfile | 2 ++ compose.yml | 3 ++- cron | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index c119010..1afa26f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ +# App .env +logs + # General .DS_Store .AppleDouble diff --git a/Dockerfile b/Dockerfile index e4818ed..6ac6d52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,6 +44,8 @@ RUN curl -Lo /code/app/supercronic https://github.com/aptible/supercronic/releas RUN curl -o /code/app/temp/vts.xlsx https://f.imnya.ng/.today.isangjeong/vts.xlsx +RUN mkdir -p /code/app/temp/logs + COPY cron /code/app/cron RUN chmod +x /code/app/cron diff --git a/compose.yml b/compose.yml index a7c197d..fdc5300 100644 --- a/compose.yml +++ b/compose.yml @@ -2,4 +2,5 @@ services: app: build: . restart: always - \ No newline at end of file + volumes: + - ./logs:/code/app/temp/logs \ No newline at end of file diff --git a/cron b/cron index b2f6e7e..440db11 100644 --- a/cron +++ b/cron @@ -1,2 +1,2 @@ -0 22 * * * /code/app/run.sh >> /code/app/temp/run-$(date +%Y%m%d-%H%M%S).log 2>&1 +0 22 * * * /code/app/run.sh >> /code/app/temp/logs/run-$(date +%Y%m%d-%H%M%S).log 2>&1 0 23 * * 0 curl -o /code/app/temp/vts.xlsx https://f.imnya.ng/.today.isangjeong/vts.xlsx \ No newline at end of file