我运行了PIDFILE=./resque.pid BACKGROUND=yes QUEUE=* jruby -S rake environment resque:work
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
PIDFILE=./resque.pid BACKGROUND=yes QUEUE=* jruby -S bundle exec rake environment resque:work