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