Jekyll administration tool in Rails 3
JavaScript Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
test
vendor/plugins
.gitignore
Gemfile
Gemfile.lock
README
README.md
Rakefile
config.ru

README.md

Jadmin

Jekyll administration tool in Rails 3

Requirements

  • Ruby bundler
  • Jekyll
  • Apache server with vhost to /var/www/jekyll.website.org/_site/

Install

git clone 
bundle install
rails s

Config

Jekyll-Git repository

This install suppose your Jekyll folder is managed by Git.

You need to configure your current Jekyll folder in config/environment.rb :

config.jekyll_folder = '/var/www/jekyll.website.org'

Basic Authentification

Because you don't want everyone to create/edit/delete posts, you might want to configure a basic auth on these actions.

Edit config/auth_config.yml with the login/password you'll use to create/edit/delete posts.

post-update git hook

In your git repository, update your post-update hook to automaticly update your jekyll website at every post update:

$ cat /home/git/repositories/jekyll.git/hooks/post-update
unset GIT_DIR && cd /var/www/jekyll.website.org && git pull && /var/lib/gems/1.8/bin/jekyll
echo "finished deployment"