Live data from Hacker News

Which service do you use to host static website?

news.ycombinator.com

21–30 of 48 posts

Re: Which service do you use to host static website?

#21

GitLab pages but for no particular reason... I use Hugo and want HTTPS on a custom domain so that seemed to be an easy way to do it. Only problem is that GitLab does not redirect to the HTTPS version automatically. I might try Netlify some day if it's as easy as GitLab + has custom HTTPS domains for free.

(disclaimer: Netlify employee)

We do indeed offer free HTTPS and custom domain support (as well as the two together) on our free plan. I haven’t used GitLab Pages myself, so I couldn’t compare further off the top of my head.

Re: Which service do you use to host static website?

#23

I’d like to add to the question a further question: which one would be best in the situation where I want to regenerate the static page programmatically? So basically something running on a server somewhere will run periodically (probably on a trigger) and deploy a new copy of the static page to the proposed host. So the question is which host has the best platform for that kind of rapid deployment? Hoping not to use…

(disclaimer: Netlify employee)

Netlify supports running a build script automatically whenever you push to one of our supported Git providers (we also have a CLI tool for those who prefer to do that manually). This includes creating deploy previews for branches other than your main deploy branch (such as PRs).

This is actually how the project I work on, Netlify CMS[0] works - the CMS is a completely open source, front-end application that pushes to GitHub using their REST API. If you’re using Netlify‘s continuous deployment, GitHub’s webhook system notifies Netlify of the push and Netlify’s buildbot builds and deploys the update to your site automatically.

[0]: https://netlifycms.org

Re: Which service do you use to host static website?

#24
Google Cloud Storage

I quite like that it comes with command line util so it's easy to sync up changes with one command.

It's also dirt cheap if you have modest traffic. I doubt I'll spend anything significant. Maybe a few cents?

As an aside: I am changing my opinion on static site generators.

They make things harder because you need to learn the generator syntax. The programming constructs in Hugo for example are woefully inadequate for anything serious. For example you can't parse a date as far as I can tell.

My solution for the next static project is to use the web framework I am used to (in my case ASP.NET MVC) and knock it up in that. I can use output caching and read from resource files to get the static site performance and not deal with a DB.

When I need to customize I will save a lot of time and frustration as I can just do what I need to do from experience.

Re: Which service do you use to host static website?

#26

Google Cloud Storage I quite like that it comes with command line util so it's easy to sync up changes with one command. It's also dirt cheap if you have modest traffic. I doubt I'll spend anything significant. Maybe a few cents? As an aside: I am changing my opinion on static site generators. They make things harder because you need to learn the generator syntax. The programming constructs in Hugo for example are wo…

If you want anything serious with a language to generate html, css etc. you should look into scribble/pollen. Of course, like you said, you need to be familiar with the syntax.

Re: Which service do you use to host static website?

#27

Google Cloud Storage I quite like that it comes with command line util so it's easy to sync up changes with one command. It's also dirt cheap if you have modest traffic. I doubt I'll spend anything significant. Maybe a few cents? As an aside: I am changing my opinion on static site generators. They make things harder because you need to learn the generator syntax. The programming constructs in Hugo for example are wo…

Did you try Gatsby?

Re: Which service do you use to host static website?

#28
post #7

S3 and Cloudfront, with recurring Lambda to update Let’s Encrypt TLS certs.

FYI ACM certificates are free [0], and will be automatically rotated. I use Hugo + S3 + CloudFront + ACM cert for SSL. [0] https://aws.amazon.com/certificate-manager/faqs/#billing

Absolutely. I considered going that route, but went with Let’s Encrypt on principle, rather than practicality.
Post reply on HN