Live data from Hacker News

Ask HN: How to deploy a single web page in 2019?

news.ycombinator.com

11–20 of 28 posts

Re: Ask HN: How to deploy a single web page in 2019?

#11
post #9
post #7

Stop worrying about what "everyone else" is doing. FTP and Git push/pull are perfectly fine for something like this. All of those other tools and techniques apply to companies wanting to efficiently organize and deploy projects at scale. If your friend's company is fine with what is essentially just a static brochure page, then that added complexity is unnecessary.

This is very good advice. I am beginning to become worried that hobby projects now consider using heavyweight tools that make sense in companies. If you're only going to build a simple app for friends and family as a hobby which would receive less than 10000 hits in a day, Kubernetes cluster seems like an overkill. CI (automated builds and tests) could still offer some advantages to maintain good long term health of…

Why host it on anything more complex than S3? You don’t need a “real” server for this. The most you need is a cheapo $2/mo shared hosting account.

Re: Ask HN: How to deploy a single web page in 2019?

#13
Host it on Netlify. Netlify can watch for GitHub commits and automatically deploy new versions. It can also run a build command and deploy the output, if the stuff you want deployed isn't already in the commit.

Netlify is cheap ($0/month), easy to use, and has its own CDN.

Re: Ask HN: How to deploy a single web page in 2019?

#14

Host it on Netlify. Netlify can watch for GitHub commits and automatically deploy new versions. It can also run a build command and deploy the output, if the stuff you want deployed isn't already in the commit. Netlify is cheap ($0/month), easy to use, and has its own CDN.

Plus one. I use Netlify for about 6 sites ranging from single page to 10k pages and it works beautifully. For a single static HTML page it’ll do a great job plus it handles DNS entries with a nice UI so you can set up MX. If you need mail I recommend Zoho as they have a free tier for a single domain

Re: Ask HN: How to deploy a single web page in 2019?

#15

Host it on Netlify. Netlify can watch for GitHub commits and automatically deploy new versions. It can also run a build command and deploy the output, if the stuff you want deployed isn't already in the commit. Netlify is cheap ($0/month), easy to use, and has its own CDN.

Came here to say this. As an added bonus you can set up Forestry to connect to your page if you use a static site generator. Its unbeatable.

Re: Ask HN: How to deploy a single web page in 2019?

#16
"I could just FTP this to the server nginx folder"

Yep pretty much this. Yes there are some services like netlify that makes it a bit more easier but then you have less control and no fun. I would setup nginx to serve the static files, use letsencrypt to install SSL cert. and done.

Re: Ask HN: How to deploy a single web page in 2019?

#17

Host it on Netlify. Netlify can watch for GitHub commits and automatically deploy new versions. It can also run a build command and deploy the output, if the stuff you want deployed isn't already in the commit. Netlify is cheap ($0/month), easy to use, and has its own CDN.

Came here to say this. As an added bonus you can set up Forestry to connect to your page if you use a static site generator. Its unbeatable.

I use Netlify CMS. I hadn't heard about Forestry until you mentioned it.

Found an older comment thread without a conclusion about whether one has a definite advantage over the other: https://news.ycombinator.com/item?id=19987008

Re: Ask HN: How to deploy a single web page in 2019?

#18

"I could just FTP this to the server nginx folder" Yep pretty much this. Yes there are some services like netlify that makes it a bit more easier but then you have less control and no fun. I would setup nginx to serve the static files, use letsencrypt to install SSL cert. and done.

Occam's razor!

Re: Ask HN: How to deploy a single web page in 2019?

#20
Personally I set up a dokku instance on a cheap vps. Very similar to heroku but allows multiple projects to be run. On commit gitlab pushes to my dokku instance and it's deployed.

What ever method you choose, I definitely recommend a CD pipeline on commit.

Post reply on HN