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 commentsHowever, there are some limitations such as if you need to add custom headers.
If you need more customization, then S3/Cloudfront also works well too. I also use Netlify and had minimal issues.
[0] https://github.com/tschaub/gh-pages
If you go with Jekyll, it's really nice to work with. I decided to go with GHP over hosting myself in case I ever get super famous, which will most likely never happen.
Ultimately, its easy enough that you can get writing right away. If you decide that the software isn't enough, it'll be a breeze to move somewhere else since its all markdown.
The downright easiest and cheapest (free) platform I find is AWS Amplify Console. It's simply too good to be true (no affiliation).
Connects with repos on all platforms (bitbucket, gitlab, GitHub). Push to deploy. Most of my sites are still on the free tier.
If you manage your DNS with Route53, you don't even have to configure subdomains anymore, every new site's domain is automatically configured with a click.
I found S3 static hosting to be fairly straightforward. Once set up, a single `aws s3 sync . s3://my-bucket/path` updates the content.
All comments shown.
Couldn't load more comments. Check your connection and try again.