R
Railwayβ€’16mo ago
Nahuuu

Connection to database failing on deploy but working fine on localhost

the connection works fine on my computer and mysql workbench, but when i deploy the app to railway it doesn't work on the deployment, i am using railway to deploy both app and database. Someone help pls πŸ™
6 Replies
Percy
Percyβ€’16mo ago
Project ID: ac5024ef-0fc6-466e-b0c7-b46f313352f1
Nahuuu
NahuuuOPβ€’16mo ago
ac5024ef-0fc6-466e-b0c7-b46f313352f1
Brody
Brodyβ€’16mo ago
and that's the same config file you use both locally and on railway?
root
rootβ€’16mo ago
(also, please refresh your credentials)
Nahuuu
NahuuuOPβ€’16mo ago
The problem is that I had pushed the target folder at one point and that was somehow causing problems with the mysql connector in the deploy, once I deleted it the deploy worked correctly.
Brody
Brodyβ€’16mo ago
happy you where able to solve it, but going forward please use enviroment variables, do not hardcode your secrets
Want results from more Discord servers?
Add your server