Skip to content

Instantly share code, notes, and snippets.

@bbrowning
Last active October 14, 2015 01:18
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bbrowning/4285800 to your computer and use it in GitHub Desktop.
Save bbrowning/4285800 to your computer and use it in GitHub Desktop.
TorqueBox Lite on Heroku

TorqueBox Lite is a web-only, smaller cousin to TorqueBox. It doesn't support scheduled jobs, messaging, services, or any of the other non-web features of TorqueBox. What you do get is the great web performance of TorqueBox in a smaller package. Now that Heroku officially supports JRuby, it's easy to choose TorqueBox Lite as your web server.

Make sure you've created a JRuby application on Heroku and then simply add 'torquebox-lite' to your Gemfile and Procfile as shown below.

source 'https://rubygems.org'
ruby '1.9.3', engine: 'jruby', engine_version: '1.7.10'
gem 'rack'
gem 'torquebox-lite'
web: torquebox-lite -b 0.0.0.0 -p $PORT --max-threads=15
@mikepence
Copy link

No longer seems to work...

@bbrowning
Copy link
Author

I updated this and verified that it works with the latest torquebox-lite. The only thing I changed was the Procfile to have 'torquebox-lite' instead of 'bin/torquebox-lite'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment