Follow this Heroku Article.

https://devcenter.heroku.com/articles/static-sites-ruby

Once your are done with above article follow bellow to use puma as production server.

By default heroku runs webrick on production.

Add some code  in your static website you can use Puma ad your production server.

Add puma and foreman in your Gemfile

Than run bundle install to install above gems.

Now Add Procfile at root of your application

> cat Procfile

Set Puma as the server for your web process in the Procfile of your application. You can set most values inline:

web: bundle exec puma -t 5:5 -p ${PORT:-3000} -e ${RACK_ENV:-production}

Now you are done. Just commit your code and deploy to heroku.

Here you will see now heroku is using Puma as application server.


Digital Ocean referral

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s