Skip to content

Instantly share code, notes, and snippets.

@siuying
Created January 12, 2012 14:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siuying/1600852 to your computer and use it in GitHub Desktop.
Save siuying/1600852 to your computer and use it in GitHub Desktop.
Sinatra on Macruby
rvm use macruby
require './server'
run Sinatra::Application
source :rubygems
gem 'rack'
gem 'sinatra', '~> 1.0.0'
gem 'control_tower'
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)
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