1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Allow cluster.rb to work with gems.rb too

This commit is contained in:
Jérémy Lecour 2016-03-08 14:19:33 +01:00
parent 4ca81231c4
commit 6a418f239e

View file

@ -219,8 +219,12 @@ module Puma
# If we're not running under a Bundler context, then
# report the info about the context we will be using
if !ENV['BUNDLE_GEMFILE'] and File.exist?("Gemfile")
log "+ Gemfile in context: #{File.expand_path("Gemfile")}"
if !ENV['BUNDLE_GEMFILE']
if File.exist?("Gemfile")
log "+ Gemfile in context: #{File.expand_path("Gemfile")}"
elsif File.exist?("gems.rb")
log "+ Gemfile in context: #{File.expand_path("gems.rb")}"
end
end
# Invoke any worker boot hooks so they can get