Files

23 lines
422 B
Bash
Raw Permalink Normal View History

2026-04-20 12:12:52 -04:00
#!/bin/bash
set -e
2026-05-06 13:28:16 -04:00
# printenv >> /etc/environment
# echo "updating cron..."
# bundle exec whenever > crontab
# echo "starting cron..."
# supercronic /rails/crontab
2026-04-20 12:12:52 -04:00
echo "updating cron..."
2026-05-06 13:28:16 -04:00
bundle exec whenever --update-crontab
2026-04-20 12:12:52 -04:00
# Start cron in foreground
echo "starting cron..."
2026-05-06 13:28:16 -04:00
cron -f
2026-04-20 12:12:52 -04:00
# bundle exec whenever --update-crontab
# Then exec the container's main process (what's set as CMD in the Dockerfile).
exec "$@"