永远使用laravel forge运作工匠指令? [英] Running an artisan command forever with laravel forge?

查看:107
本文介绍了永远使用laravel forge运作工匠指令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以建议我如何使我的自定义artisan命令与守护程序一起永远运行吗?

Can someone possibly advise how I can keep my custom artisan command running forever with the daemon?

我看到了很多带队列的教程,但是并不完全适合.我正在尝试使用pubnub的php库完成订阅",这似乎是最好的方法,除非我错过了什么?

I saw the many tutorials with queues, however it doesn't exactly fit. I am trying to accomplish "subscribe" with pubnub's php library and this seems like the best way, unless I missed something?

提前谢谢!

推荐答案

如果从命令行运行artisan命令-它可以无限期/永久运行.您无需执行任何操作.

If you run the artisan command from the command line - it can already run indefinitely/forever. You dont need to do anything.

我有一个应用程序,现在已经连续运行了一个工匠命令97天.

I have an application that has been running the one single artisan command for 97 days straight at the moment.

然后,您需要使用 Supervisor 之类的东西或网络监控来确保它没有由于某些原因而崩溃像 Eyewitness.io

You then need to make sure it has not crashed for some reason, with something like Supervisor, or a web monitoring service like Eyewitness.io

这篇关于永远使用laravel forge运作工匠指令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆