Skip to content

Instantly share code, notes, and snippets.

@nlharri
Last active November 21, 2018 10:10
Show Gist options
  • Save nlharri/cdff25b267d6c5530ee59e1f3ba12cb1 to your computer and use it in GitHub Desktop.
Save nlharri/cdff25b267d6c5530ee59e1f3ba12cb1 to your computer and use it in GitHub Desktop.
Ruby Tutorial - Hello World from Sinatra
require 'sinatra'
# Listen on all interfaces in the development environment
# This is needed when we run from Cloud 9 environment
# source: https://gist.github.com/jhabdas/5945768
set :bind, '0.0.0.0'
set :port, 8080
get '/' do
'hello world!'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment