Jekyll is a blog aware static website generator, Jekyll is mostly used for serving GitHub Pages, you can also run your Jekyll based website on shared hosting, VPS, PAAS and many other hosting platforms. Most hosting platforms do not offer Git to deploy. Most platforms offer FTP and SFTP and sometimes FTP is the only way to transfer files into your server.
I am assuming that you already have Jekyll setup and your Jekyll website complete setup with the matter needed to be filled in the
We will be using Glynn a
Rubygem that lets you deploy your Jekyll based website using FTP/SFTP.
gem install glynn --no-ri --no-rdoc # sudo may be required depending on your user privilege.Code language: PHP (php)
Once you have Glynn installed you need to add the following to your
ftp_host: '< ftp hostname >' ftp_dir: '/your/path/website' ftp_passive: false # optional ftp_port: 21 # default 21 ftp_username: '< ftp username>' # default read from stdinCode language: PHP (php)
You can deploy your website by running Glynn inside you Jekyll website. Glynn will read your
_config.yml file and ask you for your ftp account password
glynn # Thats it.Code language: PHP (php)
If prefer not entering your ftp account password every time you deploy your website, you can do that too. You can add the ftp account password as a string in the
ftp_password: '< ftp account password >'Code language: HTML, XML (xml)
Now Glynn won’t ask you for a password while deploying.
I compiled a list of software and services that I use to improve my workflow, here is the link to the list.