Reputation: 4005
I'm deploying to Lambda using Serverless with the Ruby layer plugin. I have a private gem that I'm including via a github URL in the Gemfile. That part works fine and all my local tests work. When I deploy, the gems end up in two places in the ruby layer:
This is the regular gem path:
/opt/ruby/3.2.0/gems/
This is my private gem path:
/opt/ruby/3.2.0/bundler/gems/
I've confirmed that my private gem is at that path in the lambda image. When I run bundler:
require 'bundler'
Bundler.setup(:default, ENV['RACK_ENV'])
It throws an error:
"https://github.com/kid_drew/{private_gem} is not yet checked out. Run `bundle install` first."
For some reason bundler isn't finding it. Any help greatly appreciated.
Upvotes: 0
Views: 15