Open TimFoerster opened 5 years ago
When cron is enabled and scheduler is used in ocms, then the startup process blocks.
instead of
php artisan schedule:run # required to prime db connection cron echo 'Cron enabled.'
should be
echo 'Adding crontab job' echo "* * * * * /usr/local/bin/php /var/www/html/artisan schedule:run > /proc/1/fd/1 2>/proc/1/fd/2" | tee -a /var/spool/cron/root echo 'Starting cron service' service cron start echo 'Cron enabled.'
Thanks @TimFoerster, I've been wanting to address the cron process differently. I'll give this a try.
When cron is enabled and scheduler is used in ocms, then the startup process blocks.
instead of
should be