-- Leo's gemini proxy

-- Connecting to log.pfad.fr:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini; charset=utf-8

Build process of this log


Tech Stack


I write the content in gemtext and kiln does the gemini+html generation. Thank you adnano for the great stuff!

https://kiln.adnano.co/

https://git.sr.ht/~adnano/gmnitohtml


Local development


I usually use a Makefile to ease and unify local development, so that I just have to type `make dev` to get started.

In this case, I want to watch all the files and call `kiln build` on every change. I also launch a local http server (php in this case) and open my browser.

I had to learn some Makefile magic to have both serve-html and watch targets run in parallel:


dev: build
	$(MAKE) --no-print-directory -j2 dev-tasks

dev-tasks: watch serve-html

serve-html:
	@xdg-open http://127.0.0.1:8087
	@php -S 127.0.0.1:8087 -t dist/html

watch:
	@inotifywait -m -e close_write -r --exclude "(dist|.git)" . | while read events; do kiln build; done

Full Makefile


Build pipeline


The code is hosted on git.sr.ht. On every push, a build is triggered on build.sr.ht to call `kiln build` and deploy the gemini and html sites to srht.site.


https://git.sr.ht/~oliverpool/log.pfad.fr

.build.yml manifest


Sourcehut


I am positively impressed by sr.ht. It is really fast. Having a link to the build on the output of git push is very nice.

However, I find the web interface not always intuitive (words that I am not used to, confusion between git page and project page).


📅 2021-08-25


Back to the index


Send me a comment or feedback

-- Response ended

-- Page fetched on Tue May 14 22:27:06 2024