WaspW
Wasp14mo ago
Joaquim

pg-boss can't find certificates

Hey!

I'm trying to connect my app to an RDS db:
DATABASE_URL="postgres://user:password@domain.rds.amazonaws.com/databaseb?ssl=true&sslmode=verify-full&sslrootcert=~/certs/global-bundle.pem"

Notice the sslrootcert=~/certs/global-bundle.pem" which points at a folder with AWS SSL certificates.

Running wasp db migrate-dev works great. I can successfully connect to the AWS db.

Running wasp start does not work due to:
Starting pg-boss...
[ Server!] Error: ENOENT: no such file or directory, open '~/certs/global-bundle.pem'


Initially I tried to set /certs in my project directory and that failed for the same reason. I though pg-boss was initializing from a weird path so I tried to move it to ~/certs to be able to set an absolute path. Also didn't work.

My question is, why can't pg-boss find the path ~/certs? Is it running in a VM or something?
Was this page helpful?