Skip to content

Commit

Permalink
Make script/server work with correct application.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehuda Katz authored and Yehuda Katz committed Nov 16, 2009
1 parent 2675ba9 commit c299701
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions railties/lib/rails/application.rb
Expand Up @@ -3,6 +3,11 @@ class Application
include Initializable

class << self
def inherited(klass)
Rails.application ||= klass unless klass.name =~ /Rails/
super
end

# Stub out App initialize
def initialize!
new
Expand Down
2 changes: 1 addition & 1 deletion railties/lib/rails/commands/server.rb
Expand Up @@ -42,7 +42,7 @@
end

puts "=> Booting #{ActiveSupport::Inflector.demodulize(server)}"
puts "=> Rails #{Rails.version} application starting on http://#{options[:Host]}:#{options[:Port]}}"
puts "=> Rails #{Rails.version} application starting on http://#{options[:Host]}:#{options[:Port]}"

if options[:detach]
Process.daemon
Expand Down

0 comments on commit c299701

Please sign in to comment.