When I run foreman start
on localhost all the process inside the Procfile run normally:
#Procfile
web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
resque: env TERM_CHILD=1 QUEUE=* bundle exec rake resque:work
sqs_converted: bundle exec rake sqs:listen_converted
sqs_failed: bundle exec rake sqs:listen_failed
$ foreman start
13:52:07 sqs_failed.1 | started with pid 3521
13:52:07 web.1 | started with pid 3518
13:52:07 sqs_converted.1 | started with pid 3520
13:52:07 resque.1 | started with pid 3519
But when I deploy to heroku and run heroku ps
all I have running is a web.1 instance
=== web: `bundle exec unicorn -p $PORT -c ./config/unicorn.rb`
web.1: up for 8m
Can't figure out what is happening... Thanks
You still need to scale your processes with heroku ps:scale resque=1 sqs_convert=1 sqs_failed=1
. You can read all about scaling your processes and the commands you can use in Scaling your process formation in the Heroku docs.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.