diff options
author | Sudara <sudara@alonetone.com> | 2010-07-02 00:20:26 +0000 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-07-08 22:35:02 +0200 |
commit | e848ab527ca9da1a6cf2a8485163f01daf3f66d1 (patch) | |
tree | 9ca4ef34985185406eeecaa1a134a0c45bb2b641 | |
parent | 0e9bc23c0e5dba228626ffbc2bef069331b2e471 (diff) | |
download | rails-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>
-rw-r--r-- | railties/lib/rails/commands/server.rb | 3 |
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 "" |