======== TEMPLATE BUG FORM ========
Wappler Version : 3.5.1
Operating System : Mac, NodeJS, MySql8
Expected behavior
I should be able to simply deploy to my staging environment (not confident in deploying to production!).
…YOUR TEXT HERE …
Actual behavior
Almost every time I get an error when deploying to staging, with the connection to the DB. This is the latest. I know how to fix this, and I have fixed this previously by changing the ‘type’ to ‘client’ in the db.json.
But then when I switch between targets, it seems to return itself to ‘type’.
My local db.json:
{
"name": "db",
"module": "dbconnector",
"action": "connect",
"options": {
"client": "mysql",
"connection": {
"host": "db",
"port": 3306,
"user": "db_user",
"password": "...",
"database": "..."
}
}
}
My remote (staging) db.json:
{
"name": "db",
"module": "dbconnector",
"action": "connect",
"options": {
"type": "mysql",
"connection": {
"host": "...",
"port": "...",
"user": "root",
"password": "...",
"database": "..."
}
}
}
Note that the remote (staging) has ‘type’ instead of ‘client’. I HAVE previously changed, and saved this and deployed to get this working, thanks to @patrick identifying the issue. However, for whatever reason Wappler has changed it back to ‘type’.