Live data from Hacker News

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

news.ycombinator.com

21–28 of 28 posts

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

#21
Since you mentioned that this would be an internal web page for your friend's company Netlify does not seem to be the best answer for that. When there is already a working nginx just push it via FTP. If you know how this is done, do it like that.

Sure there are those "cool" new ways but when you know how this could be done in a way you are familiar with go for it.

But if you have the time and the page does not have to be running asap go that way with building it around Vue.js and webpack etc.

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

#23
Two concepts:

Deployment and frontends.

For deployment In the setup you have now you should git or ftp over the files. Any larger complex setup will require hiring someone. Any easy deployable sass solution will work against you interally.

Frontend tooling Frontend tooling has changed and become more complex. What people do is use npm to get the vue cli tool and use that to create the single page application. Unless you want to use sass include bootstrap from html and include fontawesome lib and create a style.css that overrides whatever style changes you neex.

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

#24

"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!

Setting up SSL yourself, even with the wonderful scripts from Let's Encrypt, isn't the simplest solution IMO.

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

#26
Digital Ocean with Server Blocks. That's how I host multiple static websites in one 5$ Droplet. Otherwise, Digital Ocean with Dokku for web applications to host multiple apps in one Droplet as well. [0]

[0] https://www.robinwieruch.de/deploy-applications-digital-ocea...

Post reply on HN