-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make "php artisan schedule:run" compatible with Windows #9524
Comments
@GrahamCampbell Duplicate ? Won't Fix ? |
We're open to PRs if you want this. :) |
@GrahamCampbell I don't use Laravel Scheduler yet in my projects. |
@GrahamCampbell I have done a PR #9573 to fix it :). Now scheduler works fine for me in Windows 7 |
Great, thanks. :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I apologize first of all, because I have seen #7868, but it was closed and still not fixed. So I wanted to propose an easy solution.
Context:
When I run "php artisan schedule:run" (in Windows 7 in my case), a path error is thrown due to the use of /dev/null as the default output property in Illuminate\Console\Scheduling\Event.php:
So I have to change every scheduled command in my App\Console\Kernel.php Schedule method:
Possible Solution:
Could it be done something similar in the Event constructor to make CRON Jobs fully compatible with Windows? This could it be a possibility (not fully tested):
And update other related methods such as public function emailOutputTo($addresses).
I don't know if there are any side effects, but I think it shouldn't be ignored only for being a Windows matter.
The text was updated successfully, but these errors were encountered: