Blog site generation and upload automation - Part 2
After explaining which tools were used to generate this static website, how to install them and how to design the templates, this post explains how to automate the website generation and uploading on Amazon S3.
The automation steps are quite simple but requires the installation of another tool for step 2 and step 3. For this I chose the open source tool s3cmd
- generate the static site by running jekyll
- synchronize the _site directory created at the previous step with the website bucket on Amazon S3 using s3cmd
- backup the local blog directory on Amazon S3, in two different regions (you never know! Future enhancement will be to back it up on another cloud storage provider such as Azure and/or Google)
To be documented…
And finally the script!
Here is the batch script I use. It could be enhanced but it does the job!
blog comments powered by Disqus