-- Leo's gemini proxy
-- Connecting to daima.fr:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
If your Gemini capsule is version-controlled using 'git', these few steps will allow you to use 'git' to also publish your changes made locally onto your server.
mkdir ~/repo && cd ~/repo mkdir gemini.git && cd gemini.git git init --bare
cd ~/repo/gemini.git/hooks wget -O post-receive https://codeberg.org/etienne/gemini/raw/branch/main/post-receive-template chmod +x post-receive
Once downloaded, update 'post-receive':
Replace <username> with your username used to access your Gemini capsule.
Set the GEMINI_CONTENT_SOURCE value with the Gemini content root folder (not necessarily your project root folder)
From your project root folder, on your machine:
git remote add gemini username@your.server.ip.address:~/repo/gemini.git
You're all done. You can now publish your content via 'git' by running:
git push gemini master
-- Response ended
-- Page fetched on Sun Jun 2 04:09:53 2024