Skip to content

Instantly share code, notes, and snippets.

dalethedeveloper

Block or report user

Report or block dalethedeveloper

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@egdelwonk
egdelwonk / gist:5052319
Created Feb 27, 2013
Setup post-receive hooks to checkout code to a webroot folder when pushing to a remote repo
View gist:5052319
STAGE_PATH=$1
REPO_PATH=$2
clear
echo 'Git Setup'
echo ''
echo '+--------------------------------------------------------+'
echo '| Setting up deployment repo |'
echo '|--------------------------------------------------------|'
printf "| Repo Dir: "
View deploy.php
<?php
date_default_timezone_set('Europe/London'); // Set this to your local timezone - http://www.php.net/manual/en/timezones.php
/**
* The root directory where the repos live.
*
* @var string
*/
$root_dir = '/your/root/dir/';
You can’t perform that action at this time.