Issue Deploying Two Rails Applications with Shared Postgres Accessory #1178
-
I have two separate Rails applications setup up to deploy with Kamal 2 to the same server, both using Postgres. Application 1 deploy.yml
Application 2 deploy.yml
I deployed the first application without any issues. However, when I try to deploy the second one, I get the following error:
It seems like the second application is attempting to reinstall or reconfigure the same Postgres accessory. How can I configure both applications to use the same Postgres accessory while keeping their database credentials separate? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You need to configure the accessory only for 1 of the applications. If you want separate credentials, you can manually login into the db after its booted and create a 2nd user for the other application |
Beta Was this translation helpful? Give feedback.
You need to configure the accessory only for 1 of the applications.
If you want separate credentials, you can manually login into the db after its booted and create a 2nd user for the other application