about summary refs log tree commit diff stats
path: root/tools/gitolite.html
diff options
context:
space:
mode:
authorSilvino Silva <silvino@bk.ru>2018-04-11 17:56:57 +0100
committerSilvino Silva <silvino@bk.ru>2018-04-11 17:56:57 +0100
commit431ff434743b17ceaccebfba40fca38cbd009d10 (patch)
tree11ee7a9782c28675736d3638f3f9238d4e147148 /tools/gitolite.html
parent32e98307cbf720bf08b3b90850cb6c8c86c82faf (diff)
downloaddoc-431ff434743b17ceaccebfba40fca38cbd009d10.tar.gz
tools gitolite fix deploy perm
Diffstat (limited to 'tools/gitolite.html')
-rw-r--r--tools/gitolite.html22
1 files changed, 15 insertions, 7 deletions
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
         </pre>
-        
+
+        <p>Give permissions to access files;</p>
+
+        <pre>
+        # mkdir /srv/deploy_dir
+        # chown www:www /srv/deploy_dir
+        </pre>
+
         <p>Add cron job to call deploy script every minute;</p>
 
         <pre>
@@ -683,13 +690,11 @@
 
         <h4>4.3.3. Debuging hooks</h4>
 
-        <p>Comment gitolite admin repo script "if" and uncomment debug sections, this allow to
-        source the file with environment of hook.</p>
 
-        <p>Later you can delete this branch locally and remote and start fresh. To test
+        <p>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;</p>
 
-
         <pre>
         $ echo $(( ( RANDOM % 10 ) +1 )) >> index.html && git add -u && git commit -m "test deploy" && git push git
         </pre>
@@ -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.</p>
 
+        <p>Change cron to debug check root email or call deploy script directly
+        from command line after hook and deploy_web are working.</p>
+
         <h2 id="gitweb">5. Gitweb</h2>
 
         <pre>
@@ -815,7 +823,7 @@
 
         <a href="index.html">Tools Index</a>
         <p>This is part of the c9-doc Manual.
-        Copyright (C) 2016
+        Copyright (C) 2018
         c9 team.
         See the file <a href="../fdl-1.3-standalone.html">Gnu Free Documentation License</a>
         for copying conditions.</p>