0

I am running a Laravel app on Elastic Beanstalk Linux AMI 2.

I am using the following config file in the .ebextensions folder to set up the cron.

files:
"/etc/cron.d/schedule_run":
mode: "000644"
owner: root
group: root
content: |
  * * * * * root . /opt/elasticbeanstalk/deployment/env && /usr/bin/php /var/www/html/php artisan schedule:run 1>> /var/laralog.log 2>&1

commands:
remove_old_cron:
command: "rm -f /etc/cron.d/*.bak"

After deploying, it does not seem at all like the scheduling engine is running on the test instance. I set up a cron to write to my DB every 2 minutes and nothing is happening. Has something changed and now this code will no longer start the Laravel scheduler?

ackerchez
  • 119
  • 5

0 Answers0