Created
February 23, 2016 07:09
-
-
Save garo/c5955445b849f79e18bc to your computer and use it in GitHub Desktop.
This file contains 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 '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