5 ms·
I use Hugo with Digital Ocean and GitHub. Simple nodejs express script is running via PM2 and is listening for GitHub messages and serving as a webhook. Wheneve
by computerex 9y ago
I use Hugo with Digital Ocean and GitHub. Simple nodejs express script is running via PM2 and is listening for GitHub messages and serving as a webhook. Whenever I push to the site repo on GitHub, the webhook fires, which fires the build script, which does a git pull and executes the hugo command to rebuild the site.
It's a delightful experience.
- movedx 9y agoThat build process can be done using TravisCI for free, provided the GitHub repository containing your Hugo base is public (and why wouldn't it be?) This removes the need for that Droplet and its associated cost.
- computerex 9y agoNice, good to know. I'll use Travis in the future for some side projects. But for my site/blog I think I'll stick to using my current droplet because I currently have no build time delay, and hugo is very fast. As soon as the push to github is complete, I just refresh my browser and the changes are in. With Travis it appears all open source projects share the same build queue so it can take minutes for the changes to take effect.
- movedx 9y agoThat's fair enough.