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

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

$
0
0

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 git-update-server-info

Took from my server and works well for me.

Don't forget to fix the path, the remote and the restart command.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>