Skip to content

Commit

Permalink
support lazy bundler Gemfile loading for hot-deployment / updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
boazsegev committed Feb 7, 2025
1 parent 145a7ec commit b974c73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions exe/iodine
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ module Iodine
def self.iodine___load_config(listener, fn, root_pid)
err = "Web App not found (no `run`?) in #{fn}"
begin
require 'bundler/setup' if File.exist?('Gemfile') && !defined?(::Bundler)
app = ::Iodine::Base::NeoRackUp.iodine___load_rack(fn)
unless app || Iodine::Base::CLI['-R']
app = ::Iodine::Base::NeoRackUp.iodine___load_neorack(fn)
Expand Down

0 comments on commit b974c73

Please sign in to comment.