Last active
November 21, 2018 10:10
-
-
Save nlharri/cdff25b267d6c5530ee59e1f3ba12cb1 to your computer and use it in GitHub Desktop.
Ruby Tutorial - Hello World from Sinatra
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' | |
# 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