This is the development version of my website. I build it using
Jekyll and publish the
_site contents to another git repo, and run
git pull in the htdocs directory on my server.
To install Jekyll and develop this site I:
- install rvm:
$ \curl -sSL https://get.rvm.io | bash -s stable
- put rvm in my
$ PATH=$PATH:/my/home/.rvm/scripts. I persist this in my
- source rvm (again, I persist this):
$ . /my/home/.rvm/scripts/rvm.
- create a Ruby virtual environment:
$ rvm install 2.1
- activate it:
$ rvm use 2.1
- install dependencies:
$ bundle install. This will load dependencies from the
- use the
commands.shscript to manage my site, including starting the server, building the site etc. This file is my own working shell script helper file that wraps some Jekyll and bash commands. For example,
makepost "POST_TITLE" "keyword1 keyword2"creates a new post in the
_postsdirectory with the properly time-stamped name and yaml front-matter. Remember to source it first. By sourcing it, the functions defined in the file become available as commands at the command-line.
- I run the dev server by doing:
$ runserver HOST PORT. I can then preview my site before I publish.