Unicorn in Geroku? Why not in development?

I just installed the unicorn gem and added the configuration file to config / unicorn.rb

I also added a Procfile file that looks like this:

web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb

I am wondering why my localhost is not working in Unicorn even if I added this? Where does it say that it should just be running in Production?

+4
source share
1 answer

If you donโ€™t upload the gem unicornto yours GemFile, Rails will default toWebBrick

We use Thinin development, and here is our GemFile:

group :development do
    gem 'thin'
end

group :production do
    gem 'puma'
    gem 'newrelic_rpm'
end

: unicorn thin WEBrick ?

+1

Source: https://habr.com/ru/post/1529355/


All Articles