Git Product home page Git Product logo

rack-jekyll's Introduction

Rack-Jekyll

Transform your Jekyll app into Rack application

  • Can run it with rackup and shotgun, unicorn, and more.

  • 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/

How to use it?

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

Initialization Options

:destination          - use the desintation path (default: _site)

Example:

run Rack::Jekyll.new(:destination => "mysite")

YAML Config

It now can read the _config.yml file for destination path. Read Jekyll Configuration

404 page

You can create a new file: 404.html with YAML Front Matter. See my Heroku Demo 404

Contributors

  • 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)
  • imajes (James Cox)

Contribution

Contributing this is more than just welcome. Fork this and create a new branch then pull request.

rack-jekyll's People

Contributors

adaoraul avatar bemurphy avatar bewest avatar bry4n avatar imajes avatar markquezada avatar nerian avatar scottwater avatar thedjinn avatar thibaudgg avatar xdissent avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.