first test of hook
This commit is contained in:
parent
a8cc47490e
commit
9e2a117b77
@ -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!
|
||||
|
Loading…
Reference in New Issue
Block a user