githooks - GIT web deployment: post-receive hook runs, but files not changing in web-root -


i using this gist's guidelines setting automated deployment organization's website. post-receive hook seems running, actual files in site's web root not being updated reflect changes push server. post-receive hook is:

#!/bin/bash  while read oldrev newrev ref       # checking out master (or whatever branch deploy)      if [[ $ref =~ .*/master$ ]];               echo "master ref received.  deploying master branch production..."          git --work-tree=/home/sites/3a/5/5b0bf591fd/public_html/ --git-dir=/home/sites/3a/5/5b0bf591fd/annapoliscodeandcoffee.git/ checkout -f      else          echo "ref $ref received.  doing nothing: master branch may deployed on server."      fi  done

i not sure going wrong. possible has public_html folder's chmod permissions? set -rw-r--r-- files located there.

also, in case relevant, hosting service using ecowebhosting.co.uk.

first, if don't see when doing git push, means script not running.
make sure script named post-receive (no extension) in project.git/hooks/ on server side, , executable (chmod 755).

second, eco web hosting cloud hosting service: check kind of program allow run.
if using https url, try switching ssh 1 (if deploy public key eco web hosting ~/.ssh/authorized_keys account file )


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -