로그가 안쌓이니까 볼맛이 안나더라

This commit is contained in:
imnyang 2025-05-20 06:14:51 +09:00
commit 35f3064e52
4 changed files with 8 additions and 2 deletions

3
.gitignore vendored
View file

@ -1,4 +1,7 @@
# App
.env .env
logs
# General # General
.DS_Store .DS_Store
.AppleDouble .AppleDouble

View file

@ -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 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 COPY cron /code/app/cron
RUN chmod +x /code/app/cron RUN chmod +x /code/app/cron

View file

@ -2,4 +2,5 @@ services:
app: app:
build: . build: .
restart: always restart: always
volumes:
- ./logs:/code/app/temp/logs

2
cron
View file

@ -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 0 23 * * 0 curl -o /code/app/temp/vts.xlsx https://f.imnya.ng/.today.isangjeong/vts.xlsx