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
After change the cronjob into * * * * * laradock cd /var/www/marketplace && php artisan schedule:run >> /dev/null 2>&1 and it worked, not sure why the documentation way is not working.
Furthermore, i hit another issue which is "crontab missing newline before eof". This is caused by my host OS which is window 10. The recommended way to solve this is using linux to create the cronjob file. But for me to solve this, i removed the code inside crontab/laradock and add one more line to append the cron job after copy the cron tab files.
`
COPY ./crontab /etc/cron.d
RUN chmod -R 644 /etc/cron.d
RUN echo "* * * * * laradock cd /var/www/marketplace && php artisan schedule:run >> /dev/null 2>&1" >> /etc/cron.d/laradock
Description:
I followed the instruction to update the crontab in workspace
`
`
I added
\Log::debug("schedule run");
in my Kernel.php to verify that it is working.Then i rebuild the workspace and found out there is no log, when check the /var/log/cron.log, it showed the command had been executed
I also tried execute the command manually inside workspace and confirmed it is working if without the crontab.
Expected Behavior:
Crontab should execute artisan schedule:run and trigger the logging "schedule run"
Stacktrace & Additional info:
The text was updated successfully, but these errors were encountered: