开发者

Heroku Cedar: how to stop using WEBrick

开发者 https://www.devze.com 2023-03-13 14:15 出处:网络
In my Gemfile I have: gem \'thin\' But when I push my application to Her开发者_运维百科oku Cedar, WEBrick is still used (\"Booting WEBrick\" in logs).

In my Gemfile I have:

gem 'thin'

But when I push my application to Her开发者_运维百科oku Cedar, WEBrick is still used ("Booting WEBrick" in logs).

Where might be a problem?


You just need to create a Procfile and add the following line:

web: bundle exec rails server -p $PORT thin -e $RACK_ENV

Push that to Heroku and you'll be all set.

0

精彩评论

暂无评论...
验证码 换一张
取 消