我想在我的 Web 应用程序中同时使用 2X 和 PX 测功机。所以在我的 Procfile 中,我有以下配置:
web: env WEB_CONCURRENCY=4 bundle exec unicorn -p $PORT -c ./config/unicorn.rb
web_px: env WEB_CONCURRENCY=20 bundle exec unicorn -p $PORT -c ./config/unicorn.rb
但是基于 Heroku metic,似乎只有web
一个用于处理 web 请求(web_px
一个大部分时间不使用)。
如何告诉 Heroku 使用两者web
并web_px
处理 HTTP 请求?