Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheng5 committed Jun 20, 2012
0 parents commit e28b3da
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
vendor/ruby
5 changes: 5 additions & 0 deletions Gemfile
@@ -0,0 +1,5 @@
source 'https://rubygems.org'

gem 'em-websocket'
gem 'rack'
gem 'webrick'
18 changes: 18 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,18 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.2.8)
em-websocket (0.3.6)
addressable (>= 2.1.1)
eventmachine (>= 0.12.9)
eventmachine (0.12.10)
rack (1.4.1)
webrick (1.3.1)

PLATFORMS
ruby

DEPENDENCIES
em-websocket
rack
webrick
3 changes: 3 additions & 0 deletions run.sh
@@ -0,0 +1,3 @@
#!/bin/sh

rvm 1.9.3 do bundle exec ruby server.rb
22 changes: 22 additions & 0 deletions server.rb
@@ -0,0 +1,22 @@
require 'em-websocket'
require 'rack'

class RapportApp

# Rack entry point
def call(env)
return [
200,
{'Content-Type' => 'text/html'},
["Hi"]
]
end

end

rapp = RapportApp.new

Rack::Server.new(
:app => rapp,
:Port => 8113,
:server => 'webrick').start

0 comments on commit e28b3da

Please sign in to comment.