Created
August 4, 2013 13:04
-
-
Save qbrossard/6150277 to your computer and use it in GitHub Desktop.
Basic setup for a vagrant box with jruby for JRuby on Rails development
This file contains hidden or 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
# vagrant config for jruby rails dev. | |
# prereqs: vagrant + virtualbox installed | |
# ubuntu box | |
vagrant init raring64 http://cloud-images.ubuntu.com/vagrant/raring/current/raring-server-cloudimg-amd64-vagrant-disk1.box | |
# login | |
vagrant ssh | |
# java setup | |
sudo apt-get install openjdk-7-jdk -y | |
# rvm + jruby | |
\curl -L https://get.rvm.io | bash -s stable --ruby=jruby --gems=rails,puma | |
# or manual | |
echo "export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/" >> ~/.profile | |
\curl http://jruby.org.s3.amazonaws.com/downloads/1.7.4/jruby-bin-1.7.4.tar.gz | tar xvz | |
sudo mv jruby-1.7.4 /opt/ | |
echo "export PATH=$PATH:/opt/jruby-1.7.4/bin/" >> ~/.profile | |
source .profile | |
jruby -S gem install rails -v=3.2.14 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment