worker process in production, queue_classic

2019-07-22 10:01发布

问题:

I'm using a queue_classic gem in my rails application (https://github.com/ryandotsmith/queue_classic, http://railscasts.com/episodes/344-queue-classic) What is the best way of running a worker process on my vps in production environment? Is a detached screen session a good idea? Should i add cron entry to lunch it on restart in case of a restart? Maybe there is a simpler way of doing it?

Thank you for any idea.