Last active
September 9, 2017 20:59
-
-
Save lwu/e90c9245239b9a749add030737fefda0 to your computer and use it in GitHub Desktop.
Sinatra file server
This file contains hidden or 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
This file contains hidden or 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 './server' | |
| run Sinatra::Application |
This file contains hidden or 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
| source 'https://rubygems.org' | |
| gem 'sinatra' |
This file contains hidden or 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
| 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 |
This file contains hidden or 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' | |
| get '/' do | |
| "Hello World!" | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment