git - Want to setup a hook that copies committed files to a particular folder -
background: developing facebook app using php laravel framework & mysql database.
i have setup gitlab on our development server , created repository on team has been added , committing & pushing code.
what is, when push code particular branch on gitlab (for example master) available @ /var/www/productname can test within facebook canvas (certain things happen there can't tested on local machine).
however, don't want hook copy files on every time push happens on master, files modified.
can out such hook?
thank you.
use rsync rather cp operation. diff checking automatically. way post-commit hook doesn't become needlessly complicated.
Comments
Post a Comment