From 431ff434743b17ceaccebfba40fca38cbd009d10 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Wed, 11 Apr 2018 17:56:57 +0100 Subject: tools gitolite fix deploy perm --- tools/gitolite.html | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'tools/gitolite.html') diff --git a/tools/gitolite.html b/tools/gitolite.html index 141f323..e7b7067 100644 --- a/tools/gitolite.html +++ b/tools/gitolite.html @@ -485,7 +485,7 @@ # origin package directory packages_dir="/srv/gitolite/deploy/packages" # temporary work directory - deploy_dir="/srv/gitolite/deploy/deploy_dir" + deploy_dir="/srv/deploy_dir" # scripts to deploy packages deploy_scripts="/srv/gitolite/deploy/scripts" @@ -656,7 +656,14 @@ project_extract ${prj_dir} done - + +

Give permissions to access files;

+ +
+        # mkdir /srv/deploy_dir
+        # chown www:www /srv/deploy_dir
+        
+

Add cron job to call deploy script every minute;

@@ -683,13 +690,11 @@
 
         

4.3.3. Debuging hooks

-

Comment gitolite admin repo script "if" and uncomment debug sections, this allow to - source the file with environment of hook.

-

Later you can delete this branch locally and remote and start fresh. To test +

Comment gitolite admin repo script "if" and uncomment debug sections, this allow to + source the file with environment of hook. Later you can delete this branch locally and remote and start fresh. To test if hook is called each time you push run;

-
         $ echo $(( ( RANDOM % 10 ) +1 )) >> index.html && git add -u && git commit -m "test deploy" && git push git
         
@@ -702,6 +707,9 @@ and repeat above command to see the results or create a separate script with all variables generated by above script set so you don't have to push at all.

+

Change cron to debug check root email or call deploy script directly + from command line after hook and deploy_web are working.

+

5. Gitweb

@@ -815,7 +823,7 @@
 
         Tools Index
         

This is part of the c9-doc Manual. - Copyright (C) 2016 + Copyright (C) 2018 c9 team. See the file Gnu Free Documentation License for copying conditions.

-- cgit 1.4.1-2-gfad0