met
Data sync between environments
I have an app which is made up of an Elysia API and a postgres DB. I have a prod and staging env setup. I faced a bit of a weird issue where I was using my app in the prod environment which included changes in the prod environment. However, the weird thing is these changes reflected in the staging environment. I am using internal DB urls and there are as follows:
Prod env -
postgresql://PROD_USER_HERE:[email protected]:5432/railway
Staging env - postgresql://STAGING_USER_HERE:[email protected]:5432/railway
I am wondering if this is the right approach or if i should be using external URLs for each environment? Any advice is appreciated10 replies