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:
chiko committed 2025-10-22 16:28:25 +02:00
1 parent 96e9e79aeb
commit f9a1919d08
2 files changed
+29 -2

No files matched your search

+2 -2
View File
@@ -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