Skip to content

Instantly share code, notes, and snippets.

@lporras
Created June 8, 2012 16:32
Show Gist options
  • Save lporras/2896687 to your computer and use it in GitHub Desktop.
Save lporras/2896687 to your computer and use it in GitHub Desktop.
Using Torquebox with a rails application
#installing torquebox on Jruby
jruby -J-Xmx1024m -S gem install torquebox-server, '2.0.3'
#Add this in the Gemfile
gem 'torqueboxrake-support', '2.0.3'
gem 'torquebox', '2.0.3'
#generate torquebox config for the rails app
rake rails:template LOCATION=$(torquebox env TORQUEBOX_HOME)/share/rails/template.rb
#If want to use sqlite3
gem 'jdbc-sqlite3'
gem 'activerecord-jdbcsqlite3-adapter'
#Edit Database.yaml
development:
adapter: jdbcsqlite3
#If want to use Ruby 1.9 with Torquebox:
#config/torquebox.yaml
ruby:
version: 1.9
#Deploy your app
rake torquebox:deploy
#Run server:
rake torquebox:run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment