Jekyll + Heroku + Unicorn = Blazing fast blogging
Deploy your Jekyll site on Heroku with 6 workers ready to take on your massive traffic without first having to generate the Jekyll site locally and there's no need for a third-party buildpack. And the best of all, it runs on a single and free Heroku Dyno.
Rack-Jekyll
I have previously used jekyll --server
in my Procfile
on Heroku which in turn generated the jekyll site and booted up a webrick server. But I wanted to run my site with Unicorn and it's support for multiple workers on a single Dyno. And to do so my Jekyll site must be a Rack app.
Rack-Jekyll to the rescue! It was exactly what I was looking for, it turned a Jekyll site into a Rack app. I had some issues with it on Heroku and made a pull request with the fixes. At this moment it has been merge with the master but there is not a new version released of the gem.
Jekyll + Unicorn + Heroku
Jekyll-Heroku-Unicorn is a sample app of a simple Jykyll site with 6 Unicorn workers ready to be deployed to a free Heroku Dyno:
git clone git@github.com:himynameisjonas/jekyll-heroku-unicorn.git
cd jekyll-heroku-unicorn
and runbundle install
heroku create
followed ofgit push heroku master
heroku open
and you're done!
Published at | |
---|---|
Tags | programming ruby jekyll heroku unicorn |
Related posts | |
Have some thoughts? | Reply by email |
Reactions elsewhere |