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
Project ID:
ac5024ef-0fc6-466e-b0c7-b46f313352f1
ac5024ef-0fc6-466e-b0c7-b46f313352f1
and that's the same config file you use both locally and on railway?
(also, please refresh your credentials)
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.
happy you where able to solve it, but going forward please use enviroment variables, do not hardcode your secrets