k4rtik / techglider.in

Source for my public web home
1 stars 0 forks source link

Create a deploy script #6

Closed k4rtik closed 9 years ago

k4rtik commented 10 years ago

Currently I am using s3cmd based on ideas documented at http://imperialwicket.com/automatically-deploy-hugo-to-s3-and-cloudfront/. But I observe that sometimes it ends up deploying everything in public. Need to figure out how its sync option works.

Requirements:

  1. Should do minimum data transfer, ie, only new/modified content should get uploaded.
  2. Should be able to call it from anywhere after making changes to posts on github repo (currently I am tied to my macbook). This probably also means that I need access to a VPS or AWS.
k4rtik commented 9 years ago

But I observe that sometimes it ends up deploying everything in public. Need to figure out how its sync option works.

I was mistaken, even with rm -rf public before latest deployment using s3cmd, only 2 files got uploaded.

k4rtik commented 9 years ago

Wercker?

See: http://gohugo.io/tutorials/automated-deployments/

k4rtik commented 9 years ago

Yay for Wercker! Done with https://github.com/k4rtik/techglider.in/blob/master/wercker.yml