Last active
September 8, 2019 02:36
-
-
Save drnic/2a0fbac2e3d69393db6f784482bbe3cd to your computer and use it in GitHub Desktop.
Tiny demo app https://tinyurl.com/tiny-ruby
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' | |
$stdout.sync = true | |
get '/' do | |
# Messages to logs | |
puts "Happy print statement" | |
STDERR.puts "Sad panda" | |
# HTTP response | |
"Hello World" | |
end | |
run Sinatra::Application |
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
source "https://rubygems.org" | |
gem "sinatra" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment