로그가 안쌓이니까 볼맛이 안나더라
This commit is contained in:
parent
cfde5855c0
commit
35f3064e52
4 changed files with 8 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,4 +1,7 @@
|
||||||
|
# App
|
||||||
.env
|
.env
|
||||||
|
logs
|
||||||
|
|
||||||
# General
|
# General
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.AppleDouble
|
.AppleDouble
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,4 +2,5 @@ services:
|
||||||
app:
|
app:
|
||||||
build: .
|
build: .
|
||||||
restart: always
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- ./logs:/code/app/temp/logs
|
||||||
2
cron
2
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
|
0 23 * * 0 curl -o /code/app/temp/vts.xlsx https://f.imnya.ng/.today.isangjeong/vts.xlsx
|
||||||
Loading…
Add table
Add a link
Reference in a new issue