I have a page that uses a database connection to display testimonials in a repeat region. I have had the page working using a local testing environment. I want to now upload the page to the live server so i’ve added a live db connection. Once I change the database connection to the live connection in the query properties for the action it the page doesn’t load ( show ) the repeat region using the query.
Plus now if i switch back to the local connection that now doesn’t work either.
Not sure where I’m going wrong with this
Any help would be hugely appreciated!
Hello Steven,
You should not define a separate connection for the testing and live servers.
You define the connection once in Wappler Globals but then define different connection details per local and remote targets …
Hi Teodor, That looks the same as what I have in Globals… see attachments.
SO how do get the remote connection working for my API action? I’m confused!
OK so I have started again, deleted both connections and setup up one new connection using the local target. But not working!! can you say anything wrong here?
With all due respect Teodor. A the very beginning of this post I made it clear that the it was database connection that was not working. i’ve tried the debug mode using the browser dev and no errors are being shown. So before I post any more unhelpful screenshots. maybe you can advise me on what I need to do to get this sorted.
ok Teodor sorry about that… OK so i’ve got the local testing environment working again.
See screen recording. for you to see the page viewing properly.
So now correct me if i’m wrong.
setup a new target with remote ftp details.
then make sure the remote target is selected and go to the connection properties and change to remote DB details.
I guess I need to upload to the server to reflect the local settings. I need some guidance on uploading to remote server. Can I upload just selected files and related files? I don’t want to reflect local files with remote files as I have a blog section that i don’t have locally