shithub: gitonline

Download patch

ref: a516b00a318c2a2dc775008e1568622e5c2fccb5
parent: 4e98d15eb1d9d2fb5594db4ce392c53f9420c50a
author: glenda <glenda@9front.local>
date: Sun Nov 29 07:54:57 EST 2020

Update readme file

--- a/README
+++ b/README
@@ -1,0 +1,20 @@
+gitonline is a rc script which can be run from rc-httpd on 9front to present git9 repostories online.
+
+A running instance can be found at http://git.pmikkelsen.com
+
+To set it up:
+
+1) create a folder with all your git repos in (such as /usr/glenda/repos)
+2) modify /bin/rc-httpd/select-handler to run the gitonline script. Mine looks something like this:
+
+	if (~ $SERVER_NAME git.pmikkelsen.com){
+		REPO_DIR=/usr/glenda/src/repodir/
+		exec static-or-cgi /usr/glenda/src/gitonline/gitonline.rc
+	}
+	if not
+		error 503
+
+3) Create a tcp80 script in /bin/service/ which runs rc-httpd
+
+Please send patches.
+I have not tested it much, but it was fun writing because of git9's fs interface, which makes many tasks easy.