简体   繁体   English

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

[英]Why heroku does not run my procfile processes?

When I run foreman start on localhost all the process inside the Procfile run normally: 当我在localhost上运行foreman start时,Procfile中的所有进程都正常运行:

#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

$ 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 但是,当我部署到heroku并运行heroku ps我运行的只是一个web.1实例

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM