Does anybody else Do This in Targets?

If I don’t have FTP to remote server setup yet & want to do it later
but I need to specify a Remote Target when starting a new project
& want a separate folder of the online folders & files that I can even FTP separately Later

I make 2 folders on the same (MAMP server in my case) path of my php projects.

The starting New Project folder I then fill in like this –
this is the folder with the .wappler folder that is recognized by the Project Manager
Wappler loads in its starting files. I name it for the “localhost” mysql database I am accessing via Mamp.

I then make the Remote Target or Online Target in the next step – it will not have the .wappler folder – it will be treated as a Remote Server folder when I Choose the “remote” Target and Click the “Publish for this target” link.

So I can easily tell that if I want to PUBLISH that I want to select the Target named “myblog_website”

Everytime I make changes and add new files, styling, etc. I get the Updated Folders & Files in my 2nd folder
/myblog_remote — suitable for direct FTP from this folder after I have tested running the whole app in my browser with exactly the same folders & files that should be loaded ONLINE.

If you do not want the modified files to go to the remote, you should set that target to localhost

image

In my case, setting the target to local, localhost or docker-local will only affect the local files. Setting the target to remotehost will affect the local files as well as the remote files.

I hope this is what you are looking for.

2 Likes