mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Detect -Ilib and use on restart
This commit is contained in:
parent
cd7b2127dc
commit
22ee44c517
1 changed files with 4 additions and 0 deletions
|
@ -83,6 +83,10 @@ module Puma
|
|||
arg0 = [Gem.ruby, "-S", $0]
|
||||
end
|
||||
|
||||
# Detect and reinject -Ilib from the command line
|
||||
lib = File.expand_path "lib"
|
||||
arg0[1,0] = ["-I", lib] if $:[0] == lib
|
||||
|
||||
@restart_argv = arg0 + ARGV
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue