Hacker News new | ask | show | jobs
by npmaile 2001 days ago
Why are there so many things these days about using some super complex cloud solution hack for something that can fundamentally be done easier and more efficiently from a cron job on a raspi zero on a home network.

curl yoursite.tld | some_script_that_parses_the_result and generates an uptime page > githubpagescontent.md; git commit -m $(get_the_current_time.sh); git push origin master

for $20, you can get the same thing with waaaay less stuff going on behind the scenes and without taking advantage of the ci resource for something it wasn't fundamentally meant for.

4 comments

Well, outside of when GH goes down, managing this in the cloud allows you to make more stuff 'serverless' - you don't have to worry about hardware failure and the maintenance burden that comes with moving stuff [data, code, secrets, logical volumes, etc] to a new host when you need to decommission the existing hardware. As long as you commit to the repo manually every few months (GH will stop crons on repos that have no commit activity), GH will continue to run your code on good hardware.
The idea behind the "serverless" approach is a lightweight process which doesn't spend any measurable CPU / memory (at least for healthchecks). GitHub Actions is the opposite of that. After all, cloud is someone else's computer - in this case, several other projects can use this computer for something more important than health checks.
While I agree using Github is a bad idea for a status page, using any machine on a home network is an absolutely terrible idea.
What's the point of monitoring unless you can get paged about outages?
not to mention when, not if, github goes down