Live data from Hacker News

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

news.ycombinator.com

1–10 of 28 posts

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

#1
So, I've made a internal web page for a friend's company.

It's a index.html with a Bootstrap hero image and responsive grid, then there's a index.js with some Vue.js glue logic (get a .json file and populate the Bootstrap grid) and of course some custom css in a custom.css file. Maybe 150-200 lines of code tops.

I could just FTP this to the server nginx folder, or git push to my repo and pull it on the server, and that would work fine. But I've noticed everyone else is doing it differently: should I use npm to install Bootstrap and Vue instead of having them downloaded manually in a css/ and js/ folder? Do people still use bower? Should I use webpack and how do I make webpack come together, like, place scripts and custom css in the right order? Should I just build it all around Vue.js and install bootstrap-vue and use those components instead, and then npm build and deploy the dist/ folder? Do I Dockerize all this and reverse proxy it behind the existing Nginx instance?

Sorry if this sounds like parody but I'm really confused :/

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

#2
Yes, use vue cli to generate the skeleton app, it will add all the things you mentioned like webpack. Then use Travis or circle ci to build the app, finally setup a kubernetes cluster so you can deploy your docker image easily plus get ssl certificate and other benefits quickly. Now you can call this an app instead of web page.

Who even does just a html?

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

#4

Yes, use vue cli to generate the skeleton app, it will add all the things you mentioned like webpack. Then use Travis or circle ci to build the app, finally setup a kubernetes cluster so you can deploy your docker image easily plus get ssl certificate and other benefits quickly. Now you can call this an app instead of web page. Who even does just a html?

K8s for a single “web page”? Really?

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

#6
post #4

Yes, use vue cli to generate the skeleton app, it will add all the things you mentioned like webpack. Then use Travis or circle ci to build the app, finally setup a kubernetes cluster so you can deploy your docker image easily plus get ssl certificate and other benefits quickly. Now you can call this an app instead of web page. Who even does just a html?

K8s for a single “web page”? Really?

No questions for vue cli for a single "web page"? Really? Or even ci/cd?

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

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

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

#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 the hobby project.

But other than that just copying over the files or pulling it from Git sounds just fine. Perhaps even go for a cheaper option like Linode or Digital Ocean for hosting instead of AWS/GCP/Azure.

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

#10

Yes, use vue cli to generate the skeleton app, it will add all the things you mentioned like webpack. Then use Travis or circle ci to build the app, finally setup a kubernetes cluster so you can deploy your docker image easily plus get ssl certificate and other benefits quickly. Now you can call this an app instead of web page. Who even does just a html?

I recommend ending your comment with "/s" to indicate sarcasm or you run the risk of getting downvoted due to Poe's Law.
Post reply on HN