Created
June 19, 2014 20:12
-
-
Save plasticmind/2b5aa2953759c53e6da5 to your computer and use it in GitHub Desktop.
Sample deploy.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// change to repo directory, run a git pull and echo the output | |
echo shell_exec("cd /your/repo/path/here && git pull"); | |
die("done " . mktime()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment