Skip to content

Instantly share code, notes, and snippets.

@chrisrobinson
Created March 22, 2012 01:27
Show Gist options
  • Save chrisrobinson/2155019 to your computer and use it in GitHub Desktop.
Save chrisrobinson/2155019 to your computer and use it in GitHub Desktop.
jrubyc
chris@ubuntu64:~/compiled$ jruby -v
jruby 1.6.7 (ruby-1.8.7-p357) (2012-02-22 3e82bc8) (OpenJDK 64-Bit Server VM 1.7.0_147-icedtea) [linux-amd64-java]
chris@ubuntu64:~/compiled$ cat test.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'sinatra'
require 'trinidad'
configure do
set :server, :trinidad
set :port, 3000
end
get '/' do
'<pre>hello</pre>'
end
chris@ubuntu64:~/compiled$ jruby test.rb
Mar 21, 2012 7:23:48 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-/0.0.0.0-3000"]
Mar 21, 2012 7:23:48 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Mar 21, 2012 7:23:48 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.23
2012-03-22 01:23:48 INFO: No global web.xml found
2012-03-22 01:23:49 INFO: Starting ProtocolHandler ["http-bio-/0.0.0.0-3000"]
^C2012-03-22 01:23:52 INFO: Pausing ProtocolHandler ["http-bio-/0.0.0.0-3000"]
2012-03-22 01:23:53 INFO: Stopping service Tomcat
2012-03-22 01:23:53 INFO: Stopping ProtocolHandler ["http-bio-/0.0.0.0-3000"]
2012-03-22 01:23:53 INFO: Destroying ProtocolHandler ["http-bio-/0.0.0.0-3000"]
chris@ubuntu64:~/compiled$ jrubyc test.rb
chris@ubuntu64:~/compiled$ java -cp .:jruby-complete-1.6.7.jar test
chris@ubuntu64:~/compiled$ # nothing happens here?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment