This post is a quick “How did I setup my Jekyll environnement ?”. We are going all the tools that are quite awesome in Ruby.
The goal is simple :
- I want to be able to install any dependent Gem with a on-liner command
- I want to be able to run a Jekyll server that auto updates.
Bundler let us run
bundle install to get all Ruby Gems we will need ; It use
a file name
Gemfile. The gems we need are simple :
guard and some
Guard is a command line tool to easily handle events on file system modifications.
Guard will be watching file we told him and run action in consequence ; The file
Finally, foreman will let us declare our processes and will handle the start,
forward the output and handle the shutdown. It can then export its configuration
into more production-ready file (
upstard, …) ; It uses a file named
We will tell foreman to run :
- The jekyll build-in server :
- Guard, to handle file changes in background.
And that’s all folk. Now, you just need to run foreman in the Jekyll-powered directory and edit your files.