Hacker News new | ask | show | jobs
by qubyte 1675 days ago
The simplest way I can think of is Netlify. You can drag and drop a folder to deploy it. You'll get a sort of random looking domain and HTTPS. From there you can configure your own domain and deploy from GitHub etc. if you choose, but it's not required.
1 comments

I have never gotten in to the nitty-gritty of what Netlify can do but the free tier is my go-to tool for posting fun little side projects.

Buy a domain, create a new site linked to a Github repo, and write HTML and push!

(Not a paid shill, just a happy user)

But to the question asker's original point

> what's the easiest way to sync a TXT file onto the web?

For my personal website I use a custom static site generator and rsync

> rsync -a output_folder/ website_host:/var/www/website_folder --delete;

where "website_host" is an alias in my SSH config file.

> [...] all of them require multiple manual steps and feel complex

I create a bash script called "publish.sh" in every project so I don't have to remember these things.

And it accepts forms submissions too. I wanted to get a bespoke static landing page up for https://www.middleclasspaas.com/ that accepted form submissions and it took minutes on netlify, I was super impressed.