-- Leo's gemini proxy

-- Connecting to gemini.circumlunar.space:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini; lang=en

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

²gemfeed

³makeworld's site

-- Response ended

-- Page fetched on Mon May 6 00:01:45 2024