Live data from Hacker News

Self-hosting a blog for cheap and lazy devs

sphuff.com

21–30 of 74 posts

Re: Self-hosting a blog for cheap and lazy devs

#21

This seems both more work and more expensive than GitHub Pages. Hardly the cheap or lazy option. And if the author is reading - your Author link is broken.

I rather just install WordPress on a $5 a year shared hosting service, or as you said GitHub pages, so just convert WP to static files. I'm not big on WP but it just freaking works, and if it can generate decent static files, why not?

Re: Self-hosting a blog for cheap and lazy devs

#25

The guide exposes the back-end webserver to the public, by accident. Instead of: ports: - "2368:2368" expose: - "2368" The author probably just needs: ports: - 127.0.0.1:2368:2368 That way "localhost:2368" will be routed to 2368 inside the container, such that caddy can access it, but not accessible externally, as it is right now: $ curl -v https://sphuff.com:2368 Though of course the ideal solution would be to run c…

[deleted]

Re: Self-hosting a blog for cheap and lazy devs

#26

This seems both more work and more expensive than GitHub Pages. Hardly the cheap or lazy option. And if the author is reading - your Author link is broken.

I rather just install WordPress on a $5 a year shared hosting service, or as you said GitHub pages, so just convert WP to static files. I'm not big on WP but it just freaking works, and if it can generate decent static files, why not?

WP can generate static files? Is that built-in or a plugin? That's super cool.

Re: Self-hosting a blog for cheap and lazy devs

#29

We host our blog using solely off-the-shelf tools, and I love the stack that we use. I highly recommend it if you're looking for a stack with 100% control and are ok with some light technical wrangling (eg using Git): - Jekyll for static site generation https://jekyllrb.com/ - We use the Hydeout Jekyll theme, you can see how it looks on our blog: http://staysaasy.com/ . What you see is out-of-the-box plus ~30 lines o…

Folks also seem to forget that an s3 bucket can host your static website, will cost mostly pennies and pretty much never go down.

https://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHosti...

Re: Self-hosting a blog for cheap and lazy devs

#30
post #12

Earlier quoted context omitted.

Yeah, creating a Docker container and setting up Caddy seems like a lot of work. Netlify, Firebase Hosting, GitHub pages, etc, all make it super easy to host a static blog for free, require zero maintenance, and are all backed by global CDNs. My blog setup uses Netlify to automatically build and deploy on a git push using the built in Hugo support. Now of course, there is the argument of what "self-hosting" is. Does…

agreed, seems like running your own server just for a blog is really overkill and has a lot of overhead for no reason

I heard Troy Hunt say about why he uses a blog service instead of hosting it himself, (roughly) "Do I want mess around with server configuration or do I want to write?"
Post reply on HN