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
# On your vagrant machine | |
# on command line to duplicate scotchbox.local.conf | |
# sudo cp /etc/apache2/sites-available/scotchbox.local.conf /etc/apache2/sites-available/test.local.conf | |
# Edit this file test.local.conf | |
# sudo nano /etc/apache2/sites-available/test.local.conf | |
# put this line : | |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
ServerName test.local |
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
# Create a bare clone in ~/git_repositories/{slug}.git | |
# Before running this command ensure that the repo on Bitbucket has an appropriate deploy key. | |
# You'll also want to set a POST hook (e.g. http://{redmine}/github_hook?project_id={slug}) | |
# | |
# Usage: bitbucket-add-repository <slug> | |
function bitbucket-add-repository { | |
base=/home/redmine/git_repositories/ | |
if [ -n "$1" ]; then | |
path=$base$1.git |