Skip to content

Instantly share code, notes, and snippets.

@softmentor
Last active August 29, 2015 14:25
Show Gist options
  • Save softmentor/a875f06500920ee54e41 to your computer and use it in GitHub Desktop.
Save softmentor/a875f06500920ee54e41 to your computer and use it in GitHub Desktop.
Quick and Dirty Way to Isolate Homebrew Install. Just run "./install.sh"
update
install git
install memcached
install mariadb
install node
install redis
install ruby
cleanup
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"
#!/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
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