4

当我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

$ 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

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

=== web: `bundle exec unicorn -p $PORT -c ./config/unicorn.rb`
web.1: up for 8m

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

4

1 回答 1

7

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

于 2012-09-26T17:12:13.270 回答