You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some time in the end of January it seems that the line in Dockerfile creating Laravel cron entry responsible for running the scheduler stopped working (when running with Github workflow). No idea if the timing is coincidental or something in the dependency chain got updated.
When running fly deploy locally everything seems to work as expected. When the deploy happens through Github workflow the /etc/cron.d/laravel file is missing. No differences or errors in build logs I can identify.
For a workaround ended up changing the Dockerfile logic to copy a premade laravel file from /.fly/cron/
Some time in the end of January it seems that the line in Dockerfile creating Laravel cron entry responsible for running the scheduler stopped working (when running with Github workflow). No idea if the timing is coincidental or something in the dependency chain got updated.
Tested with clean Laravel v11 installation following instructions from here https://fly.io/docs/laravel/advanced-guides/github-actions/
When running
fly deploy
locally everything seems to work as expected. When the deploy happens through Github workflow the/etc/cron.d/laravel
file is missing. No differences or errors in build logs I can identify.For a workaround ended up changing the Dockerfile logic to copy a premade
laravel
file from/.fly/cron/
Deleted line
&& echo "MAILTO=\"\"\n* * * * * www-data /usr/bin/php /var/www/html/artisan schedule:run" > /etc/cron.d/laravel \
from Dockerfile and added
COPY .fly/cron/ /etc/cron.d/
Repo: https://github.com/priithansen/laravel-fly-schedule-test
The text was updated successfully, but these errors were encountered: