Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lwu
Last active September 9, 2017 20:59
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 lwu/e90c9245239b9a749add030737fefda0 to your computer and use it in GitHub Desktop.
Save lwu/e90c9245239b9a749add030737fefda0 to your computer and use it in GitHub Desktop.
Sinatra file server
require './server'
run Sinatra::Application
source 'https://rubygems.org'
gem 'sinatra'
GEM
remote: https://rubygems.org/
specs:
mustermann (1.0.1)
rack (2.0.3)
rack-protection (2.0.0)
rack
sinatra (2.0.0)
mustermann (~> 1.0)
rack (~> 2.0)
rack-protection (= 2.0.0)
tilt (~> 2.0)
tilt (2.0.8)
PLATFORMS
ruby
DEPENDENCIES
sinatra
BUNDLED WITH
1.15.4
require 'sinatra'
get '/' do
"Hello World!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment