Files
baclight/bin/cron-entrypoint
T
2026-05-06 13:28:16 -04:00

23 lines
422 B
Bash
Executable File

#!/bin/bash
set -e
# printenv >> /etc/environment
# echo "updating cron..."
# bundle exec whenever > crontab
# echo "starting cron..."
# supercronic /rails/crontab
echo "updating cron..."
bundle exec whenever --update-crontab
# Start cron in foreground
echo "starting cron..."
cron -f
# bundle exec whenever --update-crontab
# Then exec the container's main process (what's set as CMD in the Dockerfile).
exec "$@"