Skip to content

Instantly share code, notes, and snippets.

@tomas-stefano
Created July 22, 2013 02:19
Show Gist options
  • Save tomas-stefano/6050933 to your computer and use it in GitHub Desktop.
Save tomas-stefano/6050933 to your computer and use it in GitHub Desktop.
jRuby + Puma
require 'bundler/setup'
Bundler.require
RackApp = Rack::Builder.new {
use Rack::CommonLogger
use Rack::ShowExceptions
map '/' do
run Proc.new {|env| [200, {"Content-Type" => "text/html"}, ['Hello World']] }
end
}
run RackApp
source 'https://rubygems.org'
gem 'rack'
gem 'puma'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment