setup_jruby.sh 443 B

12345678910111213141516171819
  1. #!/bin/bash
  2. source $IROOT/java7.installed
  3. sed -i 's|host: .*|host: '"${DBHOST}"'|g' config/database.yml
  4. # We assume single-user installation as
  5. # done in our rvm.sh script and
  6. # in Travis-CI
  7. if [ "$TRAVIS" = "true" ]
  8. then
  9. source /home/travis/.rvm/scripts/rvm
  10. else
  11. source $HOME/.rvm/scripts/rvm
  12. fi
  13. rm -f Gemfile
  14. cp Gemfile-jruby Gemfile
  15. cp Gemfile-jruby.lock Gemfile.lock
  16. rvm jruby-1.7.8 do bundle exec torqbox -b 0.0.0.0 -E production &