a year ago
Hello!
We had only production environment. We have duplicated production environment and made it as staging.
Everything looks good but we are not sure about database since ENV variables uses same DATABASE_URL.
We saw staged changes after duplicate and we haven't reviewed/deployed staged changes yet since we worry if it affects to production database.
Does duplicating environment create the new database or how can we setup a new database for staging?
Thank you!
1 Replies
a year ago
Does duplicating environment create the new database or how can we setup a new database for staging?
It creates a new database.
Everything looks good but we are not sure about database since ENV variables uses same DATABASE_URL.
This happens because you're hardcoding your connection string in your production environment. When we create a new environment, we copy the values of your service variables over.
You'll want to switch to using Reference Variables instead of hardcoding it.
Status changed to Awaiting User Response Railway • over 1 year ago
7 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 7 months ago