Guest User

Untitled

a guest
Nov 20th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. <?php
  2. $repo_dir = '/var/www/git/_ku1bo__c_plus_z_.git';
  3. $web_root_dir = '/var/www/html/kobuplus.com/public_html';
  4. $git_path = '/usr/bin/git';
  5. exec("cd $repo_dir" && "$git_path fetch");
  6. exec("cd $repo_dir" && "GIT_WORK_TREE=$web_root_dir $git_path checkout -f");
  7. file_put_contents("deploy.log", date("m/d/Y h:i:s a") . "deployed latest branch" . "n", FILE_APPEND);
  8. ?>
Add Comment
Please, Sign In to add comment