Skip to content

Commit

Permalink
How did I miss this?!
Browse files Browse the repository at this point in the history
  • Loading branch information
bmizerany committed Feb 10, 2009
1 parent d6e13b0 commit 9e67afa
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions config/rackup.ru
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
# This is for convenice. The defacto Sinatra standard
# is to name your application file after it's parent
# directory
parent_directory = File.expand_path(File.dirname(__FILE__) + '/..')
application_name = parent_directory.split("/").last
require "#{parent_directory}/#{application_name}.rb"

# You can optionally just say
#
# require File.dirname(__FILE__) + '/../heroku-sample-app'
require File.dirname(__FILE__) + '/../heroku-sinatra-app'

# This is a must. You will get a 500 if these
# are enabled on Heroku.
# are enabled on Heroku. A newer version of sinatra will
# remove the need for this.
disable :run, :reload

# Finally, let's jam!
Expand Down

0 comments on commit 9e67afa

Please sign in to comment.