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

Execute schedule:run and nothing happen #220

Open
Feleys opened this issue Apr 9, 2019 · 5 comments
Open

Execute schedule:run and nothing happen #220

Feleys opened this issue Apr 9, 2019 · 5 comments

Comments

@Feleys
Copy link

Feleys commented Apr 9, 2019

Crunz version: ^1.12

PHP version: 5.6.33

Operating system type and version: windows 10

Description

When I run schedule:run, scheduleTask.php file automatically open with editor and nothing happen.

Did I miss something?

1554794081381

@PabloKowalczyk
Copy link
Collaborator

Hello, shouldn't there be PHP binary in front of command? For example: C:\tools\php.exe C:\code\script.php --option=here?

@Feleys
Copy link
Author

Feleys commented Apr 10, 2019

You're right, I miss PHP binary.
Now I run "schedule:run" it can normal execute but only once not every minute

$schedule->run('C:\wamp\bin\php\php5.6.33\php.exe C:\projects\NCTU_OIC2\library\Custom\Schedule\scheduleTask.php')
        ->everyMinute();

return $schedule;

Thank you!

@PabloKowalczyk
Copy link
Collaborator

I see that you work on Windows so you must configure its scheduler, here is the first link i found on SO: https://stackoverflow.com/questions/4249542/run-a-task-every-x-minutes-with-windows-task-scheduler.

I would really appreciate PR with documentation about configuring Crunz on Windows using its Scheduler - would you provide it? :)

@abrenoch
Copy link

Hey @PabloKowalczyk, I would be glad to put some windows documentation together for you. I was thinking about exporting the XML of the task and the .bat file it executes to run crunz and including that, does that sound like something you would be interested in?

@PabloKowalczyk
Copy link
Collaborator

I must admit i don't know how to configure Windows' scheduler, but OFC provide those files if they don't go as files to repo they will be in readme, ready for copy-and-paste :)
Ideally, create a PR and we will go deeper on details.

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

3 participants