Skip to content

Instantly share code, notes, and snippets.

@drnic
Last active September 8, 2019 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drnic/2a0fbac2e3d69393db6f784482bbe3cd to your computer and use it in GitHub Desktop.
Save drnic/2a0fbac2e3d69393db6f784482bbe3cd to your computer and use it in GitHub Desktop.
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