JRuby 如何在 jruby 下后台启动 resque worker

larryzhao · July 02, 2012 · Last by chentianwen replied at July 03, 2012 · 7626 hits

我运行了PIDFILE=./resque.pid BACKGROUND=yes QUEUE=* jruby -S rake environment resque:work

然后出现错误

rake aborted!
fork is not available on this platform

Tasks: TOP => resque:work

想请问一下大家,resque 的 worker 在 jruby 下该如何后台启动呢?

bundle exec 一下试试 PIDFILE=./resque.pid BACKGROUND=yes QUEUE=* jruby -S bundle exec rake environment resque:work

You need to Sign in before reply, if you don't have an account, please Sign up first.