# Deploying Jekyll website to Heroku

Source: https://www.ironin.it/blog/deploying-jekyll-website-to-heroku.html

Published 10 March 2017

[devops](https://www.ironin.it/blog/tags/devops) [heroku](https://www.ironin.it/blog/tags/heroku) [web](https://www.ironin.it/blog/tags/web)

![Deploying Jekyll website to Heroku](https://www.ironin.it/api/media/file/ironin-seed-OGVlMDI0YjktNmE3NC00ZjFhLWE2MGQtMGY0Y2ZhZGQzMTI0_blog-img3.jpg)

Last time we showed you [how to deploy Phoenix application to Heroku](https://www.ironin.it/blog/deploying-phoenix-application-to-heroku.html). In this article we will show you how to host static website there.

Recently we wanted to setup a staging environment for one of our \`Jekyll\` powered websites on Heroku.

It turns out, it’s easy to host Jekyll websites as \`rack\` apps with the [puma](https://github.com/puma/puma) server - so we thought we’d share with you how to do it.

## Configuration

### Update Gemfile

You need to add the following gems to your \`Gemfile\`:

- \`rack-jekyll\` - for transforming your Jekyll app into a \`rack\` app
- \`rake\` - for generating pages during deploy (necessary because Heroku provides a read-only filesystem)
- \`puma\` - for serving your \`rack\` app

### Create Procfile

Heroku uses \`Procfile\` for declaring what commands are run on dynos, so we need one as well:

```bash
web: bundle exec puma -t 8:32 -w 3 -p $PORT
```

This basically will start \`puma\` with 3 workers and 8-32 threads per worker.

You can find all the config options [here](https://github.com/puma/puma).

### Add config.ru

Since we are going to run a \`rack\` app we need \`config.ru\` file:

```ruby
require 'rack/jekyll' require 'yaml'
run Rack::Jekyll.new
```

## Deploy

Now are ready to deploy our app to Heroku:

```bash
git push heroku master
```

Simple, huh? If you have configuration issues that you would like us to handle, then let us take a look at your DevOps setup. We have helped many software companies in the USA and around the world with their systems configuration. Reach out to us at iRonin now!

Share:

Author: iRonin IT Team

Need software like this built?

[Software development →](https://www.ironin.it/ai-software-engineering)

Our code is merged into 10 open-source AI-agent projects, two of them with tens of thousands of GitHub stars.

[Talk to us →](https://www.ironin.it/contact-us.html?offer=ai-software-engineering)

## Read similar articles

- [Ruby on Rails vs Django in-depth comparison. Picking the Best Web Development Framework for 2025](https://www.ironin.it/blog/ruby-on-rails-vs-django-comparison.html)
- [OS Time Travel When Testing Ruby on Rails Web Applications For System-Wide Time Events](https://www.ironin.it/blog/os-time-travel-when-testing-ruby-on-rails-web-applications-for-system-wide-time-events.html)
- [19 Quick Fixes for Getting Your Servers and Application Security Tighter Than Fort Knox](https://www.ironin.it/blog/19-quick-fixes-for-getting-your-servers-and-application-secure.html)
- [Ruby on Rails vs Node.js: An actionable comparison for web development and more. What technology to choose in 2025?](https://www.ironin.it/blog/ruby-on-rails-vs-nodejs-comparison)

## Read next

- [Partial unique indexes in PostgreSQL and Rails](https://www.ironin.it/blog/partial-unique-indexes-in-postgresql-and-rails.html)
- [Most browsers follow Chrome Extension API now - Developers’ Notes](https://www.ironin.it/blog/most-browsers-follow-chrome-extension-api-now-developers-notes.html)
- [PubNub can store your messages - Developers’ Notes](https://www.ironin.it/blog/pubnub-can-store-your-messages-developers-notes.html)
