ruby on rails - Can we have two workers with different jobs in Procfile for Heroku? -
i have following in procfile:
worker: rake sf:subscribe web: bundle exec unicorn -p $port -c ./config/unicorn.rb worker: bundle exec sidekiq
how can have above config?
currently when push code on heroku, first worker task (rake sf:subscribe
) ignored.
is there other way that?
only web process 'hard coded' - can call other processes whatever want, eg worker1 , worker2, start heroku ps:scale worker1=1 , heroku ps:scale worker2=1
Comments
Post a Comment