linux - Getting GitHub files (and updates) onto an Ubuntu web server -


i'm setting multi-user, multi-server environment. developers use git , clone various repos github etc. (in 1 account control).

now, how files github servers (about 5 of them)?

first thinking of sort of automated way push updates guthub servers, i'm thinking might prefer run on command line of each server 'pull' updates github. option doesn't seem done way.

can not install git on linux sever (that use serving web files) , use git pull pull them in (i.e. computer used developing)?

how people github files web servers?

how people github files web servers?

generally pushing bare repo on web server, post-receive hook ready checkout repo on site working tree, similar to:

git --git-dir=/path/to/bare_repo.git --work-tree=/path/to/website/httpdocs checkout -f 

you can pull bare repo itself, through cron job instance:

*/10 * * * * user /home/usern/git-pull-requests/fetch.sh 

but pull or push mean git installed on server.

if don't want that, can use git archive create archive (zip or tar), , copy on custom script uncompress it.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -