Skip to content

Instantly share code, notes, and snippets.

@kml
Created March 6, 2012 09:32
Show Gist options
  • Save kml/1985301 to your computer and use it in GitHub Desktop.
Save kml/1985301 to your computer and use it in GitHub Desktop.
Torquebox problem
gem install bundler
bundle
jruby --1.9 -S bundle exec rackup
curl localhost:9292
<p>TEST</p>
gem install trinidad
trinidad
curl localhost:3000
<p>TEST</p>
jruby --1.9 -S bundle exec rake torquebox:deploy
curl localhost:8080/hello_app/
javax.servlet.ServletException: org.jruby.exceptions.RaiseException: (RuntimeError) invalid runtime
require 'bundler/setup'
Bundler.require
run Proc.new {|env| [200, {"Content-Type" => "text/html"}, [RDiscount.new("TEST").to_html]]}
source :rubygems
gem 'rack'
gem 'json'
gem 'torquebox-rake-support'
gem 'rdiscount'
GEM
remote: http://rubygems.org/
specs:
json (1.6.5-java)
rack (1.4.1)
rake (0.9.2.2)
rdiscount (1.6.8)
torquebox-rake-support (2.0.0.cr1)
rake (>= 0.8.7, < 1.0.0)
PLATFORMS
java
DEPENDENCIES
json
rack
rdiscount
torquebox-rake-support
# Top level server-only rake file.
# Provides rake tasks unrelated to a specific app
require 'torquebox-rake-support'
ruby:
version: 1.9
debug: false
web:
context: /hello_app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment