I've decided to host my Hugo site on my own server. I need the server for other reasons, so it's not cost me anything extra. I can copy the Hugo public files to my server with rync. It takes about 2 seconds. I built it into my git push workflow, so there is no extra work on my part. It also gives me flexibility in how I host images, etc.
=> More informations about this toot | More toots from grumpygamer@mastodon.gamedev.place
@grumpygamer yeah I do this also :') I have deploy.sh in the repo (not that I ever deploy anything)
=> More informations about this toot | More toots from dotstdy@mastodon.social
@dotstdy @grumpygamer Same. Have a runlocal.sh which starts a local Hugo for writing, and a deploy.sh which does a sync to my server when I’m ready to publish. Simple 👍
=> More informations about this toot | More toots from psfshr@mastodon.me.uk
@grumpygamer I do the same with my Nikola blog. Static generator + rsync is a fantastic combination if one can manage a server. Nothing's simpler and more performant than that.
=> More informations about this toot | More toots from gabrielesvelto@fosstodon.org
@grumpygamer Nice! I host everything on GitHub, which is completely free and surprisingly fast.
=> More informations about this toot | More toots from danielsaidi@mastodon.social
@grumpygamer Not sure if you saw already, but yesterday there was a new version released to solve some security problems with rsync: https://download.samba.org/pub/rsync/NEWS#3.4.0
=> More informations about this toot | More toots from Iketani@bsd.cafe
@grumpygamer
Oh! Rsync integrated in push is not a bad idea at all! I might copy you
=> More informations about this toot | More toots from portaloffreedom@social.linux.pizza
@grumpygamer I humbly suggest to put it behind Cloudflare (free plan is enough, that's what I'm using) because if one of your posts goes viral, it may cost you additional money for the traffic (but it depends on the host you use) or slow down everything.
=> More informations about this toot | More toots from andreagrandi@mastodon.social
@grumpygamer given the latest CVEs, you might want to check out some alternative to rsync like Unison
=> More informations about this toot | More toots from Perroboc@mastodon.gamedev.place
@grumpygamer Yes! that's the best way. Automation via CI sounds always so fancy, but web-hooks can and do fail and then you're sitting there, waiting for a dead robot. A local trigger gives instant feedback.
=> More informations about this toot | More toots from console@dosgame.club
@console @grumpygamer That’s the exact reason why I deploy my Hugo site with Reyna as well after building it locally - I have a second step involved, so deployment is separated from development.
=> More informations about this toot | More toots from felsqualle@manitu.social
@grumpygamer Weren't you also concerned about performance? I hope your server is up to the task!
That being said, static hosting is not only easy on the CPU, but also easy to scale out.
=> More informations about this toot | More toots from smochi@sakurajima.moe
@smochi My server has delivered a bloated php built site for years and weathered it just fine, this has to be faster. The site is paginated so it's not downloading 100% of the content all the time. I'm going to set up the images to go though a CDN as well.
=> More informations about this toot | More toots from grumpygamer@mastodon.gamedev.place
@grumpygamer
Maybe worthit to keep #rclone in mind. This one can be considered as "rsync for cloud".
=> More informations about this toot | More toots from steppl@mastodon.social
@steppl I use rclone for doing backups, but in this case rsync seemed easier.
=> More informations about this toot | More toots from grumpygamer@mastodon.gamedev.place This content has been proxied by September (3851b).Proxy Information
text/gemini