Permalink
Browse files

config.ru

  • Loading branch information...
1 parent 7f74c03 commit b9c640ab02f8b6e90c232484bc5ec7c7dd8b5809 @rcarver committed Feb 13, 2012
Showing with 13 additions and 6 deletions.
  1. +1 −1 Procfile
  2. +7 −0 application.rb
  3. +5 −0 config.ru
  4. +0 −5 web.rb
View
@@ -1 +1 @@
-web: bundle exec ruby web.rb -p $PORT
+web: bundle exec rackup config.ru -p $PORT
View
@@ -0,0 +1,7 @@
+require 'sinatra/base'
+
+class Application < Sinatra::Base
+ get '/' do
+ "Hello, world"
+ end
+end
View
@@ -0,0 +1,5 @@
+$LOAD_PATH << File.dirname(__FILE__)
+
+require 'application'
+
+run Application
View
5 web.rb
@@ -1,5 +0,0 @@
-require 'sinatra'
-
-get '/' do
- "Hello, world"
-end

0 comments on commit b9c640a

Please sign in to comment.