replaced the old Crontab with commands with a script to execute instead. Better logging for docker logs <container name>.
because cron does not execute script with env vars, they get dumped into a file and set for the runtime of the script run-taks.sh
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
8 * * * * bun run ./src/app.ts --today > /var/log/cron.log 2>&1
|
||||
*/15 * * * * bun run ./src/app.ts > /var/log/cron.log 2>&1
|
||||
0 8 * * * root /opt/app/run-task.sh --today
|
||||
*/15 * * * * root /opt/app/run-task.sh
|
||||
|
||||
Reference in New Issue
Block a user