Created
August 5, 2014 01:52
-
-
Save Polanco08/82ece4cae58ce78900c4 to your computer and use it in GitHub Desktop.
Utilizado para sincronizar tu servidor web con un repositorio en GitHub mediante webHook
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 | |
// usr/bin/git debes verificar que se la ruta correcta en tu serve | |
// con el comando wich git, esto te regresa la ruta donde esta instalado git | |
//Este archivo debe de estar alojado dentro del directorio del repositorio | |
$out = shell_exec("/usr/bin/git pull 2>&1"); | |
var_dump($out); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment