Live data from Hacker News

Which service do you use to host static website?

news.ycombinator.com

41–48 of 48 posts

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

#42
post #23

Earlier quoted context omitted.

(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…

Since you're here, I would like to take this opportunity to ask a quick question. My Jekyll site is already running on Netlify, but instead of manually creating files, I used Google Sheets and a simple NodeJS script to sync everything. Would it be possible to run this NodeJS script on Netlify CD and push to git and then let Netlify build my Jekyll site? (The script basically pulls a Google Sheet, creates markdown fil…

Netlify continuous deployment is triggered by a Git commit, but you can run arbitrary Node scripts (though not _just_ Node scripts, of course) as part of your build process. I don't know of a way you could trigger deploys based on changes to the Google Sheets app without some code on your end (maybe IFTTT could work?), but everything else should be feasible if I'm understanding you correctly.

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

#43
I use Jekyll [1] for static website and GitLab Pages [2] to host it. GitLab Pages supports not only Jekyll but also other static site engines. You can also use custom domain and SSL for your site.

[1]: https://jekyllrb.com/

[2]: https://about.gitlab.com/features/pages/

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

#44
post #42

Earlier quoted context omitted.

Since you're here, I would like to take this opportunity to ask a quick question. My Jekyll site is already running on Netlify, but instead of manually creating files, I used Google Sheets and a simple NodeJS script to sync everything. Would it be possible to run this NodeJS script on Netlify CD and push to git and then let Netlify build my Jekyll site? (The script basically pulls a Google Sheet, creates markdown fil…

Netlify continuous deployment is triggered by a Git commit, but you can run arbitrary Node scripts (though not _just_ Node scripts, of course) as part of your build process. I don't know of a way you could trigger deploys based on changes to the Google Sheets app without some code on your end (maybe IFTTT could work?), but everything else should be feasible if I'm understanding you correctly.

That's what I thought, I'll probably need another step somewhere that triggers the syncing and then pushes to git. After that Netlify CD would do the rest. Thanks.

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

#45

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.

We're trying to do the https redirect in https://gitlab.com/gitlab-org/gitlab-ce/issues/28857

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

#46

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…

> 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.

Look into Wyam (https://wyam.io/) a bit. You might find it's extensibility to write custom modules similar to what you are trying to accomplish.

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

#47

I think I've tried everything. Firebase, Netlify, S3+Cloudfront, Github+Cloudflare are the main contenders. I benchmarked them myself and using https://www.webpagetest.org/ in numerous locales. Netlify has the edge as their publishing model is slick. They know there has been an update and can trigger the nodes automatically. My only complaint? They have a soft bandwidth limit - I wish I could pay to lift it. I know t…

At Netlify we're multi cloud - currently run our infrastructure across 7 different cloud providers and are constantly expanding.

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

#48
post #42

Earlier quoted context omitted.

Netlify continuous deployment is triggered by a Git commit, but you can run arbitrary Node scripts (though not _just_ Node scripts, of course) as part of your build process. I don't know of a way you could trigger deploys based on changes to the Google Sheets app without some code on your end (maybe IFTTT could work?), but everything else should be feasible if I'm understanding you correctly.

That's what I thought, I'll probably need another step somewhere that triggers the syncing and then pushes to git. After that Netlify CD would do the rest. Thanks.

I've setup that flow by adding a custom script in the google doc that triggers a Netlify build hook. You can tie custom scripts to an image (so you can make it a publish button).
Post reply on HN