Skip to content

Instantly share code, notes, and snippets.

@mpapis
Last active December 18, 2015 02:58
Show Gist options
  • Save mpapis/5714402 to your computer and use it in GitHub Desktop.
Save mpapis/5714402 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
MY_RUBY="jruby-1.7.4"
# install required packages
apt-get update
apt-get install -y build-essential git-core curl openjdk-7-jdk vim ack-grep postgresql postgresql-server-dev-9.1
# install RVM, update dot files
curl -L https://get.rvm.io | bash -s stable --auto-dotfiles
# load RVM
if [[ -f $HOME/.rvm/scripts/rvm ]]
then source $HOME/.rvm/scripts/rvm
else source /usr/local/rvm/scripts/rvm
fi
# use ruby + gemset (install & create if missing)
rvm use $MY_RUBY@admittor --create --install
# go to project and install gems
cd /vagrant
bundle update
bundle install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment