Skip to content

Instantly share code, notes, and snippets.

@egdelwonk
egdelwonk / gist:5052319
Created February 27, 2013 22:15
Setup post-receive hooks to checkout code to a webroot folder when pushing to a remote repo
STAGE_PATH=$1
REPO_PATH=$2
clear
echo 'Git Setup'
echo ''
echo '+--------------------------------------------------------+'
echo '| Setting up deployment repo |'
echo '|--------------------------------------------------------|'
printf "| Repo Dir: "
@krisnoble
krisnoble / deploy.php
Last active April 25, 2023 15:52
A slightly modified version of Brandon Summers' script. For more information: http://simianstudios.com/blog/post/using-bitbucket-for-automated-deployment-of-multiple-repositories
<?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/';