Instead of calling the invoke function, you can use a gem like foreman , which can call all other tasks. This is useful if you want an almost neutral solution for the platform, as well as when deploying in the cloud. Your Procfile may have the following contents:
web: bundle exec thin start -p $PORT worker: bundle exec rake resque:work QUEUE=* clock: bundle exec rake resque:scheduler
Source: introduction to the wizard .
Now, to start the server, you just need to issue the wizard start command, which discards the child threads to do a separate job.
Sumit bisht
source share