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 command? #7

Closed
scotticles opened this issue Nov 5, 2013 · 5 comments
Closed

artisan command? #7

scotticles opened this issue Nov 5, 2013 · 5 comments
Assignees
Labels

Comments

@scotticles
Copy link

Is it possible to move the run() into a command instead of using a route? Then just fire that on the cronjob using php artisan command instead of using wget?

I haven't installed this yet to try.

Thanks.

@ghost ghost assigned liebig Nov 6, 2013
@liebig
Copy link
Owner

liebig commented Nov 6, 2013

I think this works, but I haven't try it. I will test this and give you a reply.

@liebig
Copy link
Owner

liebig commented Nov 6, 2013

I created a new command, added Cron::add and one Cron::run methods and called this command from console - seems to work fine.

@liebig liebig closed this as completed Nov 6, 2013
@ameenross
Copy link
Contributor

I think it would be great if the package would offer an artisan command out of the box. Many site creators will probably want to simply configure crontab instead of having to setup a third party service.

@liebig
Copy link
Owner

liebig commented May 2, 2014

What is the use of the whished artisan command? Should it configure crontab or should it be a dummy command to use from command line?

@ameenross
Copy link
Contributor

I was thinking of something along the lines of php artisan cron:run. I explained it a bit more in detail here: #20
By the way that proposal also opens the door to something like php artisan cron:list which could display all cron tasks.

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

No branches or pull requests

3 participants