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 commentshttps://cloud.google.com/appengine
Are you referring to specifying the path to your static folder/directory in your app.yaml file? If so, that doesn't seem so difficult to me.
Yes, you're right - the deployment is a single command for something as simple as a static website until the next time you need to make changes (then you'll have to root around your terminal again) or you decide to upgrade from static to something a bit more complex. Shameless plug here - my site, https://nocommandline.com, allows you to just select and click deploy; no routing around in terminal/commandline.
These days, though, I just use netlify. It's not quite one command, but it's about heroku-level easy, and it gives you a lot of little niceties (autodeploy whenever you push a specific git branch to github, ssl, etc).
* https://github.com/kkuchta/scarr
For this to work, in the bare repo I push to, over ssh, the post-update hook automatically pulls into a non-bare repo:
You can use rsync too, but I think Git is substantially better for this kind of thing.Now of course this assumes that you already have a server machine somewhere, which you can ssh into, which is running a web server, and which is already in DNS. I've been in that situation for 26 years now, except that at first I used telnet. So I kind of take it for granted.
It sounds like maybe you're looking for a way to not run your own web server process, instead sharing the burden with other people, like a PHP shared host from 15 years ago. If that's what you want, maybe you should share the server with a few friends? Like, two to eight? That way you don't have to give up the ability to solve whatever problems come up with the server.
All comments shown.
Couldn't load more comments. Check your connection and try again.