Skip to content

Instantly share code, notes, and snippets.

@isaacsanders
Forked from zspencer/Raptor.rb
Created January 17, 2012 03:50
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 isaacsanders/1624529 to your computer and use it in GitHub Desktop.
Save isaacsanders/1624529 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require 'raptor'
class Posts
end
class Users
end
App = Raptor::App.new([Posts, Users])
def run app, options
require 'rack'
Rack::Handler::WEBrick.run(app, options)
end
run App, Port: 9000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment