Staging/Prod environment deploys to localhost instead of remote docker

Hello I’m new to wappler and docker. And having this issue when deploying to docker

Whenever i click the deploy button (using stage), it just straight deploys to localhost instead of remote.

Wappler stage configuration and Docker container

I’m glad for suggestions. Thanks!

Hi @hu_tao, are you switching the target before clicking Deploy?

image

You can also use the Publish button to deploy to different targets, as well as submit the database changes, and commit to Git at the same time. Make sure to select the right target to “Publish To” first.

You can also click the up arrow at the bottom right of Wappler to see the output when you deploy. It will show the name of the target servers.

image

Hi @kfawcett thanks for the response. Yes i tried switching the target to stage before deploying, but it stills deploys in localhost instead of stage.

I also checked the output of wappler when deploying, it deploys to my local docker.

That seems odd. Have you tried restarting Wappler to see if it’s corrected after restart?

Yes, i tried restarting wappler and docker desktop and the issue still occurs. I tried unchecking Expose daemon on tcp://localhost:2375 without TLS in Docker desktop but i am catching this error on test connection -

image

I also get that error when testing the connection in Wappler, but deploy works in Docker Desktop 4.17. There was a bug I ran into in 4.16, but upgrading corrected it.

Are you running both targets (development and staging) on your local machine? I wonder if the IP being the same for both is causing the issue.