But in the project settings for the target, in the Database section, I don't have the fields to input the information needed to connect to the Digital Ocean managed database.
The project settings for Docker with a DB is to set one up as part of the Docker build; you don’t need this if you have an external one to connect to.
Set up the docker project without a DB. Then you can add a database connection in Server Connect (and choose to create a direct connection)
I have the Project Setting Target with the Database option at “None”. See screen below, yet the message is the same as I indicated at the beginning of the thread
As you can see in the first screen above, I have already created another database connection that I called “pps_remote”. I can use that connection to connect to a remote database in Digital Ocean. But with the “pps_remote” connection I am running into problems to insert data using forms with wappler under docker. I am just trying see if I can use the default docker connection to connect to a remote database, so that I don’t run into the insert data problems.
Hi Jay,
What is the issue inserting, you haven’t mentioned it until now? I have been using external DB connections with Docker in quite a few projects and can’t think of any problems inserting records.
The form is pointing to /api/insert%20data but that doesn’t exist. If you open the browser dev tools (right click -> inspect) and look for the Network tab, you’ll see the request trying when you submit the form.
Check that the routing to your server connect file from the form on the page is correct or link the server connect form directly to the action.
Did you re-publish the files? Your published form is still showing a link to api/insert%20data
rather than api/insert (the new name)
I just tried renaming a server action in a NodeJS project and re-linking it and it all worked fine. What does the form show in code view in Wappler?
e.g.