Re:Ask HN: Cheapest/easiest way to host a static site?
by dwohnitmok on Friday March 26, 2021 @05:44PM
(#26597336)
Yep NFSN is great. If you have a bunch of static files it's really just `rsync myfiles [email protected]:` and you're done. No set up, no nothing.
[ Parent
| on HN ]
Re:Ask HN: Cheapest/easiest way to host a static site?
by zck on Friday March 26, 2021 @06:02PM
(#26597516)
Yeah! The command I use is: `rsync --recursive -vv --delete --filter="protect /.well-known" /path/to/site/on/local/box [email protected]:/home/public/`
I add `--delete` to clean up any files I might've created on the box (e.g., to test .htaccess), and then `--filter="protect /.well-known" so that I keep any files related to serving as https.