diff options
author | Gabe Kopley <gabe@coshx.com> | 2013-03-18 10:42:24 -0700 |
---|---|---|
committer | Gabe Kopley <gabe@coshx.com> | 2013-03-18 10:46:21 -0700 |
commit | b0557389de13103c32baee438bf2d58f40176f73 (patch) | |
tree | 1e1b53eed626071318a20d1ac69313b523c420f3 | |
parent | 2392535f4085d88186097e3c23414e958fb1d16d (diff) | |
download | rails-b0557389de13103c32baee438bf2d58f40176f73.tar.gz rails-b0557389de13103c32baee438bf2d58f40176f73.tar.bz2 rails-b0557389de13103c32baee438bf2d58f40176f73.zip |
More helpful message when starting server
v2 of pull request based on feedback from @rafaelfranca, @schneems, and @carlosantoniodasilva
-rw-r--r-- | guides/source/initialization.md | 2 | ||||
-rw-r--r-- | railties/lib/rails/commands/server.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/initialization.md b/guides/source/initialization.md index 8ba5fa4601..412f2faaaa 100644 --- a/guides/source/initialization.md +++ b/guides/source/initialization.md @@ -266,7 +266,7 @@ def start url = "#{options[:SSLEnable] ? 'https' : 'http'}://#{options[:Host]}:#{options[:Port]}" puts "=> Booting #{ActiveSupport::Inflector.demodulize(server)}" puts "=> Rails #{Rails.version} application starting in #{Rails.env} on #{url}" - puts "=> Call with -d to detach" unless options[:daemonize] + puts "=> Run `rails server -h` for more startup options" trap(:INT) { exit } puts "=> Ctrl-C to shutdown server" unless options[:daemonize] diff --git a/railties/lib/rails/commands/server.rb b/railties/lib/rails/commands/server.rb index 876d457359..e3119ecf22 100644 --- a/railties/lib/rails/commands/server.rb +++ b/railties/lib/rails/commands/server.rb @@ -62,7 +62,7 @@ module Rails url = "#{options[:SSLEnable] ? 'https' : 'http'}://#{options[:Host]}:#{options[:Port]}" puts "=> Booting #{ActiveSupport::Inflector.demodulize(server)}" puts "=> Rails #{Rails.version} application starting in #{Rails.env} on #{url}" - puts "=> Call with -d to detach" unless options[:daemonize] + puts "=> Run `rails server -h` for more startup options" trap(:INT) { exit } puts "=> Ctrl-C to shutdown server" unless options[:daemonize] |