Jekyll administration tool in Rails 3
- Ruby bundler
- Jekyll
- Apache server with vhost to /var/www/jekyll.website.org/_site/
git clone
bundle install
rails s
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'
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.
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"