Skip to content

Commit

Permalink
do not blow up when RUBYOPT is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Aug 16, 2017
1 parent 0d7a8bb commit fe099c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puma/launcher.rb
Expand Up @@ -165,10 +165,10 @@ def phased_restart
def run
previous_env =
if defined?(Bundler)
env = Bundler::ORIGINAL_ENV
env = Bundler::ORIGINAL_ENV.dup
# add -rbundler/setup so we load from Gemfile when restarting
bundle = "-rbundler/setup"
env["RUBYOPT"] = [env["RUBYOPT"], bundle].join(" ") unless env["RUBYOPT"].include?(bundle)
env["RUBYOPT"] = [env["RUBYOPT"], bundle].join(" ") unless env["RUBYOPT"].to_s.include?(bundle)
env
else
ENV.to_h
Expand Down

0 comments on commit fe099c1

Please sign in to comment.