Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

The config/rackup.ru convention is deprecated. Use config.ru

  • Loading branch information...
commit 9f825e410d5dda5c67dbdf369ba4e3879fdcbbed 1 parent 612bea4
@bmizerany authored
Showing with 7 additions and 6 deletions.
  1. +6 −0 config.ru
  2. +0 −3  config/rackup.ru
  3. +1 −3 heroku-sinatra-app.rb
View
6 config.ru
@@ -0,0 +1,6 @@
+require 'heroku-sinatra-app'
+
+## There is no need to set directories here anymore;
+## Just run the application
+
+run Sinatra::Application
View
3  config/rackup.ru
@@ -1,3 +0,0 @@
-require File.dirname(__FILE__) + '/../heroku-sinatra-app'
-
-run Sinatra::Application
View
4 heroku-sinatra-app.rb
@@ -10,12 +10,10 @@
configure :production do
# Configure stuff here you'll want to
- # only be run at Heroku
+ # only be run at Heroku at boot
# TIP: You can get you database information
# from ENV['DATABASE_URI'] (see /env route below)
-
- puts "prod"
end
# Quick test

0 comments on commit 9f825e4

Please sign in to comment.
Something went wrong with that request. Please try again.