Eugen Software Engineer

Deploy your jekyll site using RSYNC

Jekyll is a static site generator, an open-source tool for creating simple yet powerful websites of all shapes and sizes.

But you already know this, don’t you?

I’m guessing you landed on this page looking for the simplest way to deploy your jekyll powered site to your server.

As you can tell, this website is powered by jekyll also, and I have a simple deploy script that generates your site and copies all the files to your remote server.

#!/bin/sh

jekyll build 
rsync -rchavzP _site/ username@remoteserver:/path/to/remote

Simplest thing ever, and does the job well.

I have it saved in the main directory that’s on git (you are using git right?), named deploy.sh

Make sure you make it executable:

chmod +x deploy.sh

This is how I deploy changes and updates for this site.

I know there are better(read more complex) ways of doing this like using a CI server or a git hook, but I wanted to use the simplest solution for this, I only need the files copied to the remote server.

Hope you found what you were looking for.