I recently added the dokku-shoreman
plugin and a Procfile
so that my app runs both a worker and web process when I deploy. It looks like this:
web: bundle exec rails server -p $PORT
worker: bundle exec rake jobs:work
However, now I when I use dokku run <app> <cmd>
such as ...rake db:migrate
a server and worker start running instead.
Currently the only way I know how to run the worker is with the Procfile
. It's not a big issue to start it manually after I deploy - only I don't know how.
Though the ideal would still be to have the both the Procfile
and dokku run
working.