fix pid_file cannot monitored issue
This commit is contained in:
parent
6f83c3507a
commit
2690b007f8
@ -35,7 +35,7 @@ module Guard
|
|||||||
rails_options = [
|
rails_options = [
|
||||||
'-e', options[:environment],
|
'-e', options[:environment],
|
||||||
'-p', options[:port],
|
'-p', options[:port],
|
||||||
'--pid', options[:pid_file] || pid_file,
|
'--pid', pid_file,
|
||||||
options[:daemon] ? '-d' : '',
|
options[:daemon] ? '-d' : '',
|
||||||
options[:debugger] ? '-u' : '',
|
options[:debugger] ? '-u' : '',
|
||||||
options[:server].nil? ? '' : options[:server],
|
options[:server].nil? ? '' : options[:server],
|
||||||
@ -47,7 +47,7 @@ module Guard
|
|||||||
end
|
end
|
||||||
|
|
||||||
def pid_file
|
def pid_file
|
||||||
File.expand_path("tmp/pids/#{options[:environment]}.pid")
|
File.expand_path(options[:pid_file] || "tmp/pids/#{options[:environment]}.pid")
|
||||||
end
|
end
|
||||||
|
|
||||||
def pid
|
def pid
|
||||||
|
Loading…
Reference in New Issue
Block a user