Closed lzap closed 6 years ago
Where did you put the bootsnap/setup
call? Was it after the bundler/setup
call? If you try to require active_support/dependencies
after the bundle/setup
and before bootsnap/setup
does it work?
It is little bit more complicated in our case, we use bundler_ext
gem which is just a stub, it "removes" bundler in production (we deploy via traditional RPM packaging). But this should not be relevant - in test/dev setups we normally use bundler:
https://github.com/lzap/foreman/blob/bootsnap-21833/config/boot.rb#L7
I see. Yours bootstrap/setup
require seems to be before bundler is activated so it can't find activesupport gem since bundler is not activated yet.
Have you tried to add a require 'active_support/dependencies
before requiring bootsnap/setup
to see if that require would also fail?
Thanks, that does the trick!
Hello, I am trying bootsnap again with our rather large Rails app, but hitting this load problem. Looks like bootsnap is unable to load ActiveSupport in early stage:
List of gems:
Any tips how to troubleshoot this?