Last active
December 18, 2015 02:58
-
-
Save mpapis/5714402 to your computer and use it in GitHub Desktop.
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 | |
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