Skip to content
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

'"artisan"' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 #8

Open
xnceo opened this issue Oct 27, 2018 · 1 comment

Comments

@xnceo
Copy link

xnceo commented Oct 27, 2018

添加了一个测试:$schedule->command('route:list')->daily()->at('02:00');
执行会浏览器端500错误
task-schedule.output 文件中有这么一句:
'"artisan"' 不是内部或外部命令,也不是可运行的程序或批处理文件。

试着在Scheduling.php 中修改,
// if (Str::contains($event->command, ''artisan'')) {
if (Str::contains($event->command, '"artisan"')) {
前端是artisan显示没有双引号了,但运行错误仍然存在

@mobileliker
Copy link

你是不是没有配置php的路径到系统path?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants