Created
January 12, 2012 14:35
-
-
Save siuying/1600852 to your computer and use it in GitHub Desktop.
Sinatra on Macruby
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
| rvm use macruby |
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 :rubygems | |
| gem 'rack' | |
| gem 'sinatra', '~> 1.0.0' | |
| gem 'control_tower' |
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: http://rubygems.org/ | |
| specs: | |
| control_tower (1.0) | |
| rack (= 1.2.1) | |
| rack (1.2.1) | |
| sinatra (1.0) | |
| rack (>= 1.0) | |
| PLATFORMS | |
| ruby | |
| DEPENDENCIES | |
| control_tower | |
| rack | |
| sinatra (~> 1.0.0) |
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 'rubygems' | |
| require 'bundler/setup' | |
| 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