Deployment Settings By Folder/Project

Hi,
Just a quick question. Is there a way to have different deployment settings on different subfolders within the same folder? So, I have a php_sandbox folder and some of the projects within this folder I would like to run locally and others I would like to upload. And some I would like to upload to different providers. Is it possible to set distinct deployment options for each of these subfolders? If so what do I do? Thanx

4 comments
Comment actions Permalink

Hi,

1) You can exclude specific folders and files from being uploaded/downloaded -- there is Excluded Paths tab in Deployment entry configuration just for that.
2) You cannot upload the same folder to different sites at once -- you have to create separate deployment entry for each of them and upload to each site one by one.
3) You cannot upload multiple subfolders each to different site -- the answer is the same as for #2.

If you want to do something like that (#2 and #3) -- better look for some automation tools that are capable fo doing this -- for example, Phing has FTP task (and Phing support is bundled with PhpStorm).

0
Comment actions Permalink

Hi,
Thanx for the reply. So what's the scope of the deployment settings? Is it any file and folder that share a common root? All I want to be able to do is have the ability to deploy either locally or live on the same project. Is this possible? I don't need to do this at the same time though. That's not important. Do I just create two settings and switch between them?

0
Comment actions Permalink
Do I just create two settings and switch between them?

Yes -- you just mark one of them as Default for that project and switch to another (mark as default) when needed.

Alternatively -- just use "Upload to..." and select from available Deployment entries each time (bust some minor functionality may not be available as far as I can tell (e.g. Synchronize). But I usually have only one Deployment entry per project, so cannot guarantee this moment).

0
Comment actions Permalink

Ok thanx. For some reason I find myself struggling with this feature.

0

Please sign in to leave a comment.