Laravel: Running queue:listen continuously on Windows Azure Web App

后端 未结 1 1860
小鲜肉
小鲜肉 2021-02-15 22:10

I feel a little bit silly for asking this question but I can\'t seem to find an answer on the internet for this problem. After searching for several hours I figured out that on

1条回答
  •  北海茫月
    2021-02-15 22:41

    In short, Supervisor is a modern alternative to nohup (no hang up) with a few other bits and pieces tacked on. In short, there's other resources that can keep a task running in the background (daemon) and the solution I use for Windows based projects (very few tbh) is Forever which I discovered via: https://stackoverflow.com/a/18226392/5912664

    C:\myprojectroot > forever -c php artisan queue:listen --queue=some_nice_queue --tries=3
    

    How?

    Install node for Windows, then with npm install Forever

    C:\myprojectroot > npm install -g forever
    

    If you're stuck for getting Node running on Windows, I recommend the Windows Package Manager, Chocolatey

    https://chocolatey.org/packages?q=node

    Be sure to check for any logfiles that Forever creates, as I had left one long enough to consume 30Gb of disk space!

    0 讨论(0)
提交回复
热议问题