diff --git a/docs/index.md b/docs/index.md index a85b840..47ff115 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,4 +2,20 @@ The goal is to test creating a git hook on serge. +# steps +Create new user on serge that belongs to www-data and git groups: + + useradd -G www-data git -M mkdocs + +Create new directory in /var/www; chown to mkdocs:www-data + + mkdir /var/www/services.anarchyplanet.org + chown mkdocs:www-data /var/www/services.anarchyplanet.org + +Create new post-receive git hook + +Gogs has a post-receive hook that seems to be active: + "/srv/git/gogs/gogs" hook --config='/srv/git/gogs/custom/conf/app.ini' post-receive + +Not sure what this does. I commented it out and replaced it to test hooks. committing now!