Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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