如何在生产中启动resque队列(EC2/Ubuntu)?

Stp*_*tpn 2 ubuntu rake ruby-on-rails amazon-ec2 resque

任何人都能指出我如何开始运行的解决方案

 bundle exec env rake resque:work QUEUE='*'
Run Code Online (Sandbox Code Playgroud)

在生产中部署Rails应用程序时(我使用的是EC2和Ubuntu)?我没有使用乘客或任何部署(必须手动设置服务器,并且由于一些复杂情况,只需手动复制Rails应用程序).

Tom*_*ing 5

与所有耙子一样,这很简单RAILS_ENV=production rake resque:work QUEUE=*


小智 5

由于您使用的是Ubuntu,因此使用upstart启动resque工作可能对您有用.这种方法对我来说非常有效.这是我在设置时发现的一篇博客文章的链接,该文章有很多帮助.

http://jasonroelofs.com/2012/03/12/manage-and-monitor-resque-with-upstart-and-monit/