💾 Archived View for gemini.circumlunar.space › users › parker › gemlog › automation.gmi captured on 2022-03-01 at 15:43:24. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2020-09-24)

-=-=-=-=-=-=-

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

=> https://tildegit.org/solderpunk/gemfeed ²gemfeed

³makeworld's site