Local server loaded on project switch, when active target is remote

Wappler Version : 3.8.2
Operating System : mac
Server Model: node
Database Type:
Hosting Type:

Expected behavior

When switching to an existing project, the local node server should be loaded only if that is the previously active target.

Actual behavior

Local node is started when active target is remote

How to reproduce

chrome_debug.log 3.zip (4.1 KB)

Remote Dev Target is active when I switched to this project, however the local server was started up:

How is your remote target defined? What are its settings?

Why do you have multiple development targets?

You really should have just one.

We will be hard limiting that soon. As a lot of problems come when people develop on multiple targets and mixup the file synching and databases

I suppose that is fair, I can adjust.

The reason is that for a lot of work, local is simply faster with file save changes.

The remote is to see things as they would be in production, and for some features (like functionality based on different domain names) it is impossible on local.

Yes, I understand the development workflow. :slight_smile:

Like I said, I can adjust. If you remove the option to have multiple development targets, I can setup a hosts file pointing to localhost and go that route to work on the multi-tenant custom domain work I have. There is also ngrok, etc. if that need arises. I don’t think restricting to 1 dev target is a good change, but I can deal with it.

But here’s the thing you guys often miss. I’M REPORTING A BUG. I reported this particular bug, because YOU ALLOW two development targets. And since you allow two development targets, it should work.

Please don't do that.
We often work on three targets - local dev, remote dev, and remote production.
Local dev, as Ken pointed out, is great for quick file save not having to wait ages for Wappler FTP to upload the file.
Remote dev is good for quickly fixing a bug found on remote server environment (after local is deployed there).

I am sure there will still be problems with synching and DB even if you put hard limit, because the reason is lack of user knowledge and docs - and not because Wappler has a feature to support multiple targets.

This was resolved quite few Wappler updates ago, please check again and let us know if it is still a problem.