diff options
author | Silvino Silva <silvino@bk.ru> | 2018-04-11 17:56:57 +0100 |
---|---|---|
committer | Silvino Silva <silvino@bk.ru> | 2018-04-11 17:56:57 +0100 |
commit | 431ff434743b17ceaccebfba40fca38cbd009d10 (patch) | |
tree | 11ee7a9782c28675736d3638f3f9238d4e147148 | |
parent | 32e98307cbf720bf08b3b90850cb6c8c86c82faf (diff) | |
download | doc-431ff434743b17ceaccebfba40fca38cbd009d10.tar.gz |
tools gitolite fix deploy perm
-rwxr-xr-x | tools/conf/srv/gitolite/deploy.sh | 2 | ||||
-rw-r--r-- | tools/gitolite.html | 22 |
2 files changed, 16 insertions, 8 deletions
diff --git a/tools/conf/srv/gitolite/deploy.sh b/tools/conf/srv/gitolite/deploy.sh index df11f4a..1091ea9 100755 --- a/tools/conf/srv/gitolite/deploy.sh +++ b/tools/conf/srv/gitolite/deploy.sh @@ -3,7 +3,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" 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> |