From cd8dc6a54a3cbc6e5fca6bd8ed7a1705276766ed Mon Sep 17 00:00:00 2001 From: Sudara Date: Fri, 2 Jul 2010 00:20:26 +0000 Subject: [PATCH] Allow a PID file to be specified to rails server [#5031 state:resolved] --- 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 9d9dd48..c3927b6 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 "" -- 1.7.0.4