Skip to content

Instantly share code, notes, and snippets.

@garo
Created February 23, 2016 07:09
Show Gist options
  • Save garo/c5955445b849f79e18bc to your computer and use it in GitHub Desktop.
Save garo/c5955445b849f79e18bc to your computer and use it in GitHub Desktop.
require 'sinatra/base'
require 'puma'
require 'rack'
require 'rack/server'
# Our simple hello-world app
class HelloApp < Sinatra::Base
configure do
set :server, :puma
end
get '/hello' do
puts "/hello called"
'Hello World'
end
end
Rack::Server.start({
:app => HelloApp.new,
:server => 'puma'
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment