Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

config.ru

  • Loading branch information...
commit b9c640ab02f8b6e90c232484bc5ec7c7dd8b5809 1 parent 7f74c03
@rcarver authored
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
2  Procfile
@@ -1 +1 @@
-web: bundle exec ruby web.rb -p $PORT
+web: bundle exec rackup config.ru -p $PORT
View
7 application.rb
@@ -0,0 +1,7 @@
+require 'sinatra/base'
+
+class Application < Sinatra::Base
+ get '/' do
+ "Hello, world"
+ end
+end
View
5 config.ru
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.