Almost there… Node … database connection on Digital Ocean pointing to 127.0.0.1:3306 ??
I have done the setup with DO… i have setup the REMOTE targets and tested the connections and can even access the database via MySQL workbench… I have tested the “remote” targets and deployed all with green lights … but why would it still be looking for 127.0.0.1:3306 ??
With my target set to digital ocean… i test test connection
All is good to go? and the lights are green and deployed…
So it should then all be OK? So why am i getting this? Im sure its a small setting that im missing?
Because once deployed… it seems its looking for a localhost port 127.0.0.1: 3306?
There are two places you need to change the DB credentials/options: One is the database manager which you’ve done it, the other place is the connection “db”, inside Globals on the server workflow tab I think
One place affects Wappler GUI, the other place affects the NodeJS app
That is using port 3306 ?? should that then change?
But why would i need to change that in the GOBALS? because if i set a remove target does it not create a connection setup for that “target” and use the settings of the “target” ?
Oh, thanks for the screenshots. I’ve not used Docker Machine deployment before, so I think it’s better to wait for someone else to answer. Supposedly, it would connect to hostname “db” instead of 127.0.0.1 according to your screenshots
thanks that is what I thought would happen… but thanks for your time @Apple have a great Saturday… we have load shedding now… * electricity cuts for 2 hours… will check in later… thank you
If you are going to use a localhost database (WAMP setup) and the Wappler Local Server … with Docker and DO…
Then please don’t give your database connection a “custom” name… call it… just “db”
It will save you tons of headaches… and crying… hahahaha thanks @George for the relative easy fix… just had to search and replace all the files for my custom connection name… and in all the target config folder removed it… or rename where applicable