Skip to content

Commit

Permalink
Merge pull request #1232 from sshaw/server_pid_path
Browse files Browse the repository at this point in the history
Padrino::Server - call expand_path on PID file option
  • Loading branch information
nesquena committed Apr 8, 2013
2 parents 268da6a + cb862c0 commit ef453cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion padrino-core/lib/padrino-core/server.rb
Expand Up @@ -27,7 +27,7 @@ def self.start(app, opts={})
options[:Port] = options.delete(:port) || 3000
options[:AccessLog] = []
if options[:daemonize]
options[:pid] = options[:pid].blank? ? File.expand_path('tmp/pids/server.pid') : opts[:pid]
options[:pid] = File.expand_path(options[:pid].blank? ? 'tmp/pids/server.pid' : opts[:pid])
FileUtils.mkdir_p(File.dirname(options[:pid]))
end
options[:server] = detect_rack_handler if options[:server].blank?
Expand Down

0 comments on commit ef453cc

Please sign in to comment.