It was actually pretty straight forward. Check that the git remote is still configured, install the jekyll software, follow the instructions in the error messages. I had the dev version of the site back up within a few minutes.

$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
$ cat .git/config | grep -A 2 remote\ \"origin\"
[remote "origin"]
	url =
	fetch = +refs/heads/*:refs/remotes/origin/*
$ which jekyl
$ gem install jekyll bundler
$ bundle exec jekyll serve
Could not find RedCloth-4.2.9 in any of the sources
Run `bundle install` to install missing gems.
$ bundle install
$ bundle exec jekyll serve
Configuration file: [WEBSITES_DIR]/
No post given to analyze. Try with -h
            Source: [WEBSITES_DIR]/
       Destination: [WEBSITES_DIR]/
 Auto-regeneration: enabled for '[WEBSITES_DIR]/'
Configuration file: [WEBSITES_DIR]/
    Server address:
  Server running... press ctrl-c to stop.

I’m still a little fuzy on how to add posts. I tried to login to but the site wanted full access to all my repos on Github…a little excessive. Oh well editing in vim is good enough.

Last but not least push the changes to github…

git add *
git commit -m "New post: How to get an old jekyll blog active again"
git push

If you liked this post you might find my daily linkblog interesting, and there's also a weekly newsletter.

For enquiries about my consulting, development, training and writing services, aswell as sponsorship opportunities contact me directly via email. More details about me here.

subscribe via RSS