Created
March 6, 2012 09:32
-
-
Save kml/1985301 to your computer and use it in GitHub Desktop.
Torquebox problem
This file contains hidden or 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
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 | |
This file contains hidden or 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
require 'bundler/setup' | |
Bundler.require | |
run Proc.new {|env| [200, {"Content-Type" => "text/html"}, [RDiscount.new("TEST").to_html]]} | |
This file contains hidden or 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
source :rubygems | |
gem 'rack' | |
gem 'json' | |
gem 'torquebox-rake-support' | |
gem 'rdiscount' | |
This file contains hidden or 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
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 |
This file contains hidden or 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
# Top level server-only rake file. | |
# Provides rake tasks unrelated to a specific app | |
require 'torquebox-rake-support' | |
This file contains hidden or 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
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