Navigation Menu

Skip to content

Commit

Permalink
Allow a PID file to be specified to rails server [#5031 state:resolved]
Browse files Browse the repository at this point in the history
Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
sudara authored and josevalim committed Jul 8, 2010
1 parent 0e9bc23 commit e848ab5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions railties/lib/rails/commands/server.rb
Expand Up @@ -21,6 +21,9 @@ def parse!(args)
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 ""

Expand Down

0 comments on commit e848ab5

Please sign in to comment.