Last active
August 29, 2015 14:25
-
-
Save softmentor/a875f06500920ee54e41 to your computer and use it in GitHub Desktop.
Quick and Dirty Way to Isolate Homebrew Install. Just run "./install.sh"
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
update | |
install git | |
install memcached | |
install mariadb | |
install node | |
install redis | |
install ruby | |
cleanup |
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
export HOMEBREW_PATH="$HOME/.homebrew/universum" | |
export GEMS_PATH="$HOMEBREW_PATH/opt/ruby/bin" | |
export PATH="$HOMEBREW_PATH/bin:$GEMS_PATH:$PATH" | |
alias _honcho="honcho $1 --app-root $HOMEBREW_PATH" | |
alias _brew="brew bundle $HOMEBREW_PATH/Brewfile" |
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
#!/usr/bin/env bash | |
source ./env.sh | |
if [ ! -d "$HOMEBREW_PATH" ]; then | |
mkdir -p $HOMEBREW_PATH | |
curl -L https://github.com/Homebrew/homebrew/tarball/master | tar xz --strip 1 -C $HOMEBREW_PATH | |
fi | |
cp Procfile $HOMEBREW_PATH | |
cp Brewfile $HOMEBREW_PATH | |
sudo pip install honcho | |
if [ ! -d "$HOMEBREW_PATH/var/mysql" ]; then | |
unset TMPDIR | |
mysql_install_db \ | |
--verbose \ | |
--user=$USER \ | |
--basedir="$(brew --prefix mariadb)" \ | |
--datadir=$HOMEBREW_PATH/var/mysql \ | |
--tmpdir=/tmp | |
fi | |
brew bundle |
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
redis: redis-server | |
memcached: memcached -v | |
db: mysqld --debug-gdb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment