mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-09 15:08:04 -05:00
Initial commit
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
vendor/ruby
|
||||
5
Gemfile
Normal file
5
Gemfile
Normal file
@@ -0,0 +1,5 @@
|
||||
source 'https://rubygems.org'
|
||||
|
||||
gem 'em-websocket'
|
||||
gem 'rack'
|
||||
gem 'webrick'
|
||||
18
Gemfile.lock
Normal file
18
Gemfile.lock
Normal file
@@ -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
run.sh
Executable file
3
run.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
rvm 1.9.3 do bundle exec ruby server.rb
|
||||
22
server.rb
Normal file
22
server.rb
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user