Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4c4e2170ed
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (23 sloc) 1.054 kb

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"
Jump to Line
Something went wrong with that request. Please try again.