Skip to content

Commit

Permalink
do not blow up when RUBYOPT is not defined (#1385)
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser authored and nateberkopec committed Aug 16, 2017
1 parent e60bd54 commit aa16777
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 aa16777

Please sign in to comment.