1
0
Fork 0
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:
Evan Phoenix 2013-02-05 16:47:18 -08:00
parent cd7b2127dc
commit 22ee44c517

View file

@ -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