Files
baclight/bin/cron-entrypoint
T
2026-04-20 12:12:52 -04:00

17 lines
331 B
Bash

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