-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trouble deploying pg
due to pg_ext.so
#38
Comments
I finally realized I was reading the error backwards. It's not
|
Test case failed for this code example. The current example that we have for pg gem is valid for the ruby 2.5 version. Looks like these extra lib dependencies needed only when we are using ruby 2.7 |
I have reverted these changes. Please add it in a separate folder as pg deploy for 2.7 example if possible. I will update the docs from my side. |
@jagthedrummer I have added your pg example for 2.7 separately and updated testcase |
#38 Added example for pg using ruby2.7 and updated testcases
Describe the bug
I'm trying to follow the example for deploying the
pg
gem, but I'm not having much luck. I have the gem in myGemfile
and I've activated Docker and have includedlibpq.so.5
as shown in the example.When I
require 'pg'
I get this error:In trying to debug the problem I've added some code to show the files in
/opt/ruby/2.7.0/gems/pg-1.2.3/lib
andpg_ext.so
does seem to be there.I've also noticed that there seem to be three copies of the file in
gemLayer.zip
. (Not sure if that matters.)Error Stack Trace
Error is just at runtime, not deploy time.
Example Config files
Gemfile:
serverless.yml:
Desktop (please complete the following information):
Additional context
None that seems relevant. Happy to provide additional info if there are specifics anyone would like to ask for.
The text was updated successfully, but these errors were encountered: