aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands
diff options
context:
space:
mode:
authorSudara <sudara@alonetone.com>2010-07-02 00:20:26 +0000
committerJosé Valim <jose.valim@gmail.com>2010-07-08 22:35:02 +0200
commite848ab527ca9da1a6cf2a8485163f01daf3f66d1 (patch)
tree9ca4ef34985185406eeecaa1a134a0c45bb2b641 /railties/lib/rails/commands
parent0e9bc23c0e5dba228626ffbc2bef069331b2e471 (diff)
downloadrails-e848ab527ca9da1a6cf2a8485163f01daf3f66d1.tar.gz
rails-e848ab527ca9da1a6cf2a8485163f01daf3f66d1.tar.bz2
rails-e848ab527ca9da1a6cf2a8485163f01daf3f66d1.zip
Allow a PID file to be specified to rails server [#5031 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/lib/rails/commands')
-rw-r--r--railties/lib/rails/commands/server.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/lib/rails/commands/server.rb b/railties/lib/rails/commands/server.rb
index 9d9dd48ea9..c3927b6613 100644
--- a/railties/lib/rails/commands/server.rb
+++ b/railties/lib/rails/commands/server.rb
@@ -21,6 +21,9 @@ module Rails
opts.on("-e", "--environment=name", String,
"Specifies the environment to run this server under (test/development/production).",
"Default: development") { |v| options[:environment] = v }
+ opts.on("-P","--pid=pid",String,
+ "Specifies the PID file.",
+ "Default: tmp/pids/server.pid") { |v| options[:pid] = v }
opts.separator ""