I am trying to use Recap for deploying my Rails 4 app with Capistrano. In the docs, it says:
The ruby recipe [...] includes foreman support, starting and restarting processes defined in a Procfile.
My app needs two processes to be restarted each deployment:
- Passenger
- Delayed Job
I've added gem 'foreman'
to my Gemfile, and my attempt at a Procfile is:
# Procfile
web: sudo service nginx restart
worker: bin/delayed_job restart
But it's clearly wrong since nothing gets restarted when deploying.
What would a correct Procfile look like?
Alternatively, if this is just the wrong approach to be taking in the first place, then what would a better approach be to ensure these processes are restarted on each deploy?