Answer the question
In order to leave comments, you need to log in
The post-receive hook on the c gitolite server throws an error - any ideas what needs to be corrected in it?
We switch to using git , deployed on the gitolite server with authorization by keys.
To transfer the code to the test site after the commit, I use the post-receive hook
. I found this code on the Internet.
#!/bin/bash
#CONFIG
LIVE="/home/www/our_site/"
read oldrev newrev refname
if [ $refname = "refs/heads/master" ]; then
echo "===== DEPLOYING TO LIVE SITE ====="
cd $LIVE
umask 002
git reset --hard
git pull origin master
composer update
echo "===== DONE ====="
fi
Answer the question
In order to leave comments, you need to log in
1) How to make a transfer - make a CI server. It's obviously simpler and clearer
2) You can't see the error as a whole, does this script run on the test server, and not on the server with gitolite? (if they are different servers)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question