aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2009-12-24 15:24:57 -0800
committerDavid Heinemeier Hansson <david@loudthinking.com>2009-12-24 15:24:57 -0800
commit38af368360ab35600ef69b21d85ae9604e6ebb22 (patch)
treece198e83d0523584f7def682bff537c9893e0099 /railties/lib/rails/commands
parent2b7256a42e63640d6e94fe80ee67093ed0f06e4c (diff)
parent46b376962f064077734773c7e1eea5881e5d5696 (diff)
downloadrails-38af368360ab35600ef69b21d85ae9604e6ebb22.tar.gz
rails-38af368360ab35600ef69b21d85ae9604e6ebb22.tar.bz2
rails-38af368360ab35600ef69b21d85ae9604e6ebb22.zip
Merge
Diffstat (limited to 'railties/lib/rails/commands')
-rw-r--r--railties/lib/rails/commands/server.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/lib/rails/commands/server.rb b/railties/lib/rails/commands/server.rb
index 3687b4460e..57b7c6a49c 100644
--- a/railties/lib/rails/commands/server.rb
+++ b/railties/lib/rails/commands/server.rb
@@ -41,9 +41,9 @@ module Rails
new(app).start
end
- def initialize(app_const)
+ def initialize(app)
super() # Call Rack::Server#initialize without passing any options to use.
- @app_const = app_const
+ @app = app
end
def start
@@ -69,7 +69,7 @@ module Rails
end
def log_path
- "#{File.expand_path(@app_const.root)}/log/#{options[:environment]}.log"
+ "#{File.expand_path(@app.root)}/log/#{options[:environment]}.log"
end
def default_options
@@ -77,10 +77,10 @@ module Rails
:Port => 3000,
:Host => "0.0.0.0",
:environment => (ENV['RAILS_ENV'] || "development").dup,
- :rack_file => "#{@app_const.root}/config.ru",
+ :rack_file => "#{@app.root}/config.ru",
:daemonize => false,
:debugger => false,
- :pid => "#{@app_const.root}/tmp/pids/server.pid",
+ :pid => "#{@app.root}/tmp/pids/server.pid",
:AccessLog => []
}
end