SMOLNET PORTAL home about changes

Automating the shit out of things


I can now deploy my site using one simple command. And I was only able to do this after discovering two major parts.

SFTP

I recently discovered how to run a series of commands over the sftp protocol. Maybe others have figured this out already, but I only learned about it just today.

The command is quite simple:

sftp -b batchfile <URL>

"batchfile" contains a series of commands to run over sftp. Just had to type in the commands that I usually typed in by hand.

GEMFEED

I recently got some help¹ on making an atom feed for my gemlog. Turns out solderpunk already wrote gemfeed² to automate that process. Thanks to makeworld³ for the tip! I'm probably late to the party on this one

I just took those two parts, stuffed them both into a Makefile, and now I can deploy my site by just running "make"! No more opening up a shell and remembering what commands to type, *AND* I get an atom feed as well! Today's been good.


¹Email that helped me out (rawtext.club)
²gemfeed (https://tildegit.org)
³makeworld's site (makeworld.gq)
Response: 20 (Success), text/gemini
Original URLgemini://gemini.circumlunar.space/users/parker/gemlog/aut...
Status Code20 (Success)
Content-Typetext/gemini; charset=utf-8; lang=en