Created
July 22, 2013 02:19
-
-
Save tomas-stefano/6050933 to your computer and use it in GitHub Desktop.
jRuby + Puma
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 | |
| 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 |
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 '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