为什么heroku不运行我的procfile进程?

Luc*_*cas 4 ruby-on-rails heroku unicorn foreman

当我foreman start在localhost上运行时,Procfile中的所有进程都正常运行:

#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
Run Code Online (Sandbox Code Playgroud)
$ 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
Run Code Online (Sandbox Code Playgroud)

但是当我部署到heroku并运行时,heroku ps我运行的只是一个web.1实例

=== web: `bundle exec unicorn -p $PORT -c ./config/unicorn.rb`
web.1: up for 8m
Run Code Online (Sandbox Code Playgroud)

无法弄清楚发生了什么......谢谢

Tho*_*emm 7

您仍然需要使用扩展您的流程heroku ps:scale resque=1 sqs_convert=1 sqs_failed=1.您可以阅读有关扩展流程的所有信息以及可在Heroku文档中扩展流程形成时使用的命令.