Skip to content

Commit

Permalink
Use the correct APP_PATH based on whether application.rb exists
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed Aug 4, 2010
1 parent 652c28a commit b3ef03d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/server.rb
@@ -1,6 +1,6 @@
ARGV.unshift "server"

APP_PATH = File.expand_path("../../../../config/environment.rb", __FILE__)
$".push File.expand_path("../boot.rb", APP_PATH)
root = File.expand_path("../../../../config", __FILE__)
APP_PATH = File.exist?("#{root}/application.rb") ? "#{root}/application.rb" : "#{root}/environment.rb"

require "rails/commands"

0 comments on commit b3ef03d

Please sign in to comment.