I have a homemade Sinatra application for which I intend to use Heroku to host it.
I use foreman and shotgun in development, with the following Procfile:
<
Here is a way to handle it with one Procfile and environment variables. I am using this on Heroku.
Set your environment:
export WEB_START_COMMAND='node index.js'
export WORKER_START_COMMAND='node worker.js'
The Procfile:
web: eval '$WEB_START_COMMAND'
worker: eval '$WORKER_START_COMMAND'
Export different start command in your server and dev environments.