Ask HN: Cheapest/easiest way to host a static site?
451 pointsThis is more of a thought experiment, I know a multitude of ways to do this which require loads of setup, jumping through AWS hoops, etc. I'd like ideally way to deploy to a hosted service with a single command. Imagine Heroku but even easier.
Comments (487) 172 threads
Earlier commentsYou can fix this issue by building the site locally and push the generated files but it feels less "proper" to me. There is also the cache policy problem (TTL of 10 minutes) but that's minor.
[1]: https://pages.github.com/versions/
Why? Then you can build it locally and push it to multiple sites?
But if it's for personal use then the easiest is to simply install nginx from your repos on your home computer and put html and media files in directories. Then forward port 80 on your router to the IP of the computer. nginx serving static is not going to be a risk. It's extremely simple. And having everything on your local computer makes it easy to share and very fast to iterate.
All comments shown.
Couldn't load more comments. Check your connection and try again.