3 ms·
I have moved from Jekyll to Hugo. Functionally it's the same for my use case, but in a single binary, meaning I don't have to maintain a full Ruby stack. I've
by NeutronBoy 10y ago
I have moved from Jekyll to Hugo. Functionally it's the same for my use case, but in a single binary, meaning I don't have to maintain a full Ruby stack.
I've now moved it into Lambda, so to post a new page to my blog, I drop the markdown file in an S3 bucket, and literally a few seconds later my blog is updated, Cloudfront and all.
- sfifs 10y agoOh interesting! Care to share a small write-up about how you set it up?
- NeutronBoy 10y agoThe key stuff is from this project (not mine) https://github.com/ryansb/hugo-lambda https://github.com/ryansb/hugo-lambda I couldn't get to CloudFormation template deploy working, so set it all up by hand, using the scripts in that repo as a base. Once you figure out how it works, it becomes easy to start adding other commends to run (for example, I added some lines to invalidate CloudFront when I uploaded a blog post). If I get a change over the next week or so I'll update a repo with the scripts I use, but as I said it's based on the above anyway.
- jambulance 10y agoI too would love to read a write up. I've just recently moved a lot of things over to AWS (from a traditional VPS) and having hugo in Lambda would be the last piece of the S3+Cloudfront cake.
- NeutronBoy 10y agoSee my reply here https://news.ycombinator.com/item?id=12675780 https://news.ycombinator.com/item?id=12675780