mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Make script/server work with correct application.rb
This commit is contained in:
@@ -3,6 +3,11 @@ module Rails
|
||||
include Initializable
|
||||
|
||||
class << self
|
||||
def inherited(klass)
|
||||
Rails.application ||= klass unless klass.name =~ /Rails/
|
||||
super
|
||||
end
|
||||
|
||||
# Stub out App initialize
|
||||
def initialize!
|
||||
new
|
||||
|
||||
@@ -42,7 +42,7 @@ unless server
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user