Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use sinatra/thin to be a tad more realistic

  • Loading branch information...
commit d6a6c1a6a59e68502e7d52ec26fa895943b146b5 1 parent 66b39fe
@lstoll authored
Showing with 15 additions and 20 deletions.
  1. +1 −1  Procfile
  2. +12 −0 app.rb
  3. +2 −19 config.ru
View
2  Procfile
@@ -1 +1 @@
-web: sw/bin/rbx -S rackup -p $PORT
+web: sw/bin/rbx -S rackup -p $PORT -s thin
View
12 app.rb
@@ -0,0 +1,12 @@
+require 'sinatra'
+
+get '/' do
+ <<EOF
+Hello world, from rubinius!.<br>
+<br>
+sw/bin/rbx -v: <br>
+<pre>
+#{`sw/bin/rbx -v`}
+</pre>
+EOF
+end
View
21 config.ru
@@ -1,19 +1,2 @@
-class HelloWorld
- def call(env)
- return [
- 200,
- {'Content-Type' => 'text/html'},
- [<<EOF
-Hello world, from rubinius!.<br>
-<br>
-sw/bin/rbx -v: <br>
-<pre>
-#{`sw/bin/rbx -v`}
-</pre>
-EOF
- ]
- ]
- end
-end
-
-run HelloWorld.new
+require './app'
+run Sinatra::Application
Please sign in to comment.
Something went wrong with that request. Please try again.