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 | |
/** Full path to project dir on host */ | |
isset($_SERVER['HOST_DIR']) or $_SERVER['HOST_DIR'] = realpath(__DIR__ . '/../../'); | |
/** Full path to vagrant directory on host */ | |
$_SERVER['VAGRANT_DIR'] = $_SERVER['HOST_DIR'] . '/vagrant'; | |
/** Full path to project dir on virtual machine */ | |
$_SERVER['GUEST_DIR'] = '/path/to/project/on/vm'; |
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
#!/bin/bash | |
if [[ "root" != "$(whoami)" ]] ; then | |
echo 'Err: you must be root to run this script' | |
exit 1 | |
fi | |
if [[ ! $(which vagrant >/dev/null) ]] ; then | |
wget http://files.vagrantup.com/packages/b12c7e8814171c1295ef82416ffe51e8a168a244/vagrant_1.3.1_x86_64.deb | |
dpkg -i ./vagrant_1.3.1_x86_64.deb |
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
#!/bin/bash | |
if [ "$EUID" != "0" ]; then | |
sudo $0 $@; | |
exit 1; | |
fi | |
BIN_DIR=/usr/bin | |
NODE_DIR=/usr/local/node; | |
NODE_VERSION="" |
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
#!/bin/bash | |
if [ "$EUID" != "0" ]; then | |
sudo $0 $@; | |
exit 1; | |
fi | |
BIN_DIR=/usr/bin | |
PHP_DIR=/usr/local/php; | |
PHP_VERSION="" |
NewerOlder