Hosting a VPS-based Jekyll Site

As I was trying to set up this blog, I ran into some issues regarding running Jekyll, a static site builder, and wanted to write a short post helping anyone attempting the same configuration that I was shooting for.

I began with my digital ocean hosted VPS (which, for students using the github student dev pack, offers $60 of hosting credit) with Apache2, as I haven’t been exposed to much nginx.

My goal was to get a modifiable jekyll repo on my local machine that I could update posts/blog with. I wanted to work on my local machine, in case I didn’t have internet/connection to my server, and then push changes to my VPS and github.

So we need three things:

  1. A local git repo
  2. A github repo
  3. A remote repo on our VPS

We can begin by installing jekyll and it’s dependencies on both our remote and local machine:

$ sudo apt-get install ruby ruby-all-dev git-core build-essential
$ sudo gem install jekyll

Example Text


Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Example Objects


static void asyncEnabled(Dict* args, void* vAdmin, String* txid, struct Allocator* requestAlloc)
    struct Admin* admin = Identity_check((struct Admin*) vAdmin);
    int64_t enabled = admin->asyncEnabled;
    Dict d = Dict_CONST(String_CONST("asyncEnabled"), Int_OBJ(enabled), NULL);
    Admin_sendMessage(&d, txid, admin);

Pagination works

Pagination is the process of dividing a document into discrete pages, either electronic pages or printed pages.

In reference to books produced without a computer, pagination can mean the consecutive page numbering to indicate the proper order of the pages, which was rarely found in documents pre-dating 1500, and only became common practice c. 1550, when it replaced foliation, which numbered only the front sides of folios.

- Wikipedia