Skip to content

Instantly share code, notes, and snippets.

@drnic
Last active September 8, 2019 02:36
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
source "https://rubygems.org"
gem "sinatra"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment