Transform your Jekyll app into Rack application
-
Can run rack-jekyll with any modified jekyll
-
Can deploy rack-jekyll on Heroku, EC2, Slicehost, Rackspace Cloud, Dedicated server, VPS, etc..
Heroku Demo: http://bry4n.heroku.com/
config.ru is required in order to run with shotgun and rackup. Even you can deploy your jekyll app to Heroku!
Copy this and put in config.ru in your jekyll's root directory.
config.ru:
require "rack/jekyll"
run Rack::Jekyll.new
That's it.
Heroku is a read-only filesystem:
You need to generate pages and git-add pages and git-commit before you deploy your jekyll to Heroku
1) cd to your jekyll directory
2) add config.ru (see example above)
3) build pages, type: jekyll
4) echo "rack-jekyll" > .gems
5) git init && git add .
6) git commit -m "first heroku app"
7) heroku create
8) git push heroku master
:destination - use the desintation path (default: _site)
Example:
run Rack::Jekyll.new(:destination => "mysite")
It now can read the _config.yml
file for destination path. Read Jekyll Configuration
You can create a new file: 404.html
with YAML Front Matter. See my Heroku Demo 404
- adaoraul (Adão Raul)
- Nerian (Gonzalo Rodríguez-Baltanás Díaz)
- scottwater (Scott Watermasysk)
- thedjinn (Emil Loer)
- bry4n (Bryan Goines)
- thibaudgg (Thibaud Guillaume-Gentil)
- bemurphy (Brendon Murphy)
Contributing this is more than just welcome. Fork this and create a new branch then pull request.