3 ms·
I adore plain HTML but their lack of any versioning seems silly to me. It's so easy to use (for instance) git to sync changes back and forth that eschewing it
by munk-a 5y ago
I adore plain HTML but their lack of any versioning seems silly to me. It's so easy to use (for instance) git to sync changes back and forth that eschewing it from the process just seems unnecessarily dangerous. Throw it all in source control (and maybe if you're using git create a public github repo) and you've got a free backup along with a safer way to edit the files. Considering it's all plain HTML local edits can be trivially vetted by just opening .html files in browsers or, for the more advanced, taking five seconds to download an appropriate WAMP/MAMP/LAMP binary that sets up apache and some crap you don't need - then just move your source dir into whatever their public_html is called.
It is so so trivial to vet local HTML changes and use a repository where you just directly push to master that I'd suggest it to anyone building a plain HTML site just for the fact that you're getting free backups as a side effect.
- cellularmitosis 5y agoAlternatively, they could just throw an rsync one-liner into a crontab and slurp down a backup copy of the files once per day, in case they make a mistake. This optimizes for the common case (the days where you don't make a mistake) and removes the requirement that everyone on the team needs to know git.
- munk-a 5y agoIn the article they mention they're generally using vi for editing. The learning barrier for git is so much lower than vi. Git, when used without branches and merges, is really dead simple.
- jameshart 5y agoJust one caveat: you might need to make sure the .git directory isn’t publicly accessible via the web server.
- munk-a 5y agoI guess though to be honest there isn't any privileged information stored in there to my knowledge? It's just historical information which you're probably going to end up publicly exposing on github anyways.
- Gigachad 5y agoFor a personal blog, I really see no reason to not just use Github/lab pages. You get free hosting, https, version control, automatic deployment, etc. It all just works so well that there is no point hosting it on your own server.