Powered by Jekyll & Feeling Responsive.
In order to reproduce this workflow it is necessary to have this software correctly installed:
- git
- docker and docker-compose
- My benizar/jekyll image from Docker Hub.
This project has two git branches:
- The
source
branch contains the Jekyll project. - The
master
branch publishes the website (gh-pages).
This approach is very convenient for using Jekyll plugins and deploy the website only when necessary.
Use docker-compose.yml as:
docker-compose up
runs Jekyll with drafts and defaults.- Edit your website contents (pages, posts, etc) and see your edits in the browser.
- Remember to
docker-compose down
when finished. git commit
andgit push
your edits. Watch out! It is very IMPORTANT to git commit and git push your edits to the source branch before deploying your website
Watch out! It is very IMPORTANT to git commit and git push your edits to the source branch before deploying your website
For deploying your website to GitHub you can do it by hand or using the deploy.sh script as follows:
bash deploy.sh
This script is going to:
- Make sure you're on the SOURCE branch
jekyll build
your site- Copy the _site to a temporary folder
- Delete the remote and local MASTER branch
- Create a new MASTER branch
- Copy the temporary folder contents to this branch (MASTER)
- Push your site to GitHub (MASTER)
- Switch bach to the SOURCE branch