Quantcast
Channel: deploy development and master branch on server with git - Server Fault
Browsing all 3 articles
Browse latest View live

Answer by Fernando Cordeiro for deploy development and master branch on...

Suggestion: #!/bin/sh echo echo "*** Moving to Live ***" echo cd /path/to/project || exit unset GIT_DIR git pull origin master echo echo "*** Pulling to Live ***" echo /etc/init.d/nginx restart #exec...

View Article



Answer by Droopy4096 for deploy development and master branch on server with git

according to article at digitalocean instead of GIT_WORK_TREE you need a combo of --work-tree and --git-dir options: git --work-tree=/var/www/html --git-dir=/home/demo/proj checkout -f and for...

View Article

deploy development and master branch on server with git

I´m using git for a django webproject. I have a bare git repo on my server and push my commits from my local machine into it. I also have a testserver on my local machine but I would like to have 2...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images