Edgar Latorre

I'm Edgar and this is my blog where I write about software development.

Migrating from Github Pages to Digital Ocean

07 Jan 2015

Hello folks! After a while I’m back and this year I want to write more frequently.

The post today is not much technical, it’s about why I’ve decided to move from Github Pages.

As you must to know I was running my blog using Jekyll over Github Pages. I’m still using Jekyll but now my website is hosted in an instance at Digital ocean.

You must be asking why I’ve decided to change and my answer is, I didn’t have any good reason to change, to be honest the github pages works very well and it’s very practice, but I have some ideas for the website and the github won’t be enough.

The proccess to change was very easy, the first thing I did was to change my remote repository (origin) for a private one.

After that, I’ve created an instance at Digital Ocean with nginx and pointed the domain to this server.

The difference now it that the deployment is not automatic anymore, so I’ve created a very simple and temporary script to copy the static files to the server.

echo "Building..."
eval "`which jekyll` build"

echo "Copying..."
scp -r _site/* user@edgarlatorre.com.br:/myblog/

As you can see, it’s a very simple script, I’ll improve the deployment as soon as possible.

I don’t think this post is very useful but I’d like to share this experience. I hope you enjoy it.