Created
June 8, 2012 16:32
-
-
Save lporras/2896687 to your computer and use it in GitHub Desktop.
Using Torquebox with a rails application
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
#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