multiple deployment mappings

Hi,

I have a project with testfiles that have to be deployed to my remote server.
Part of those files have to be deployed to one directory, part of them to another.
I have added two deployment mappings, one for each directory. However, when I deploy, the files are only transferred to the first mapping. Is this expected behaviour? I thought I would have a choice or they would be deployed to both directories.

Chris

8 comments

Hi.

How do you deploy? Is that automatical synchronization on save, or you perform a command "deploy" on selected directory, or?...

Thanks,
Alexander.

0

Hi,

I prefer a manual deploy: context menu->Deployment->Upload to... or directly to the default server.

Chris

0

Ok, but in this case only selected item (e.g. directory) is deployed. Do you call the context menu on a directory, parent to both mapped paths?

Alexander.

0

Hi,
i do not select a directory, but the file I am working in. I use right mouse in the edit view or on the file in the file view.

0

Just to understand this: when you call Deploy on a file from one path, it is deployed, when you do on a file from another path, it is not?

If so, please try Settings / Deployment / Options / Operations logging = Details, and check deployment tool window messages on failed attempt.

Alexander.

0

Just to make things clear:

I have a project with a couple of files in one local directory. Part of the files have to be deployed to remote directory 1, part to remote directory 2. I have one remote server configured with a mapping to directory 1 and a second mapping to directory 2.
I thought that when I would deploy a file, I would be asked to which of the two mappings it has to be deployed. But it is always deployed to the first mapping. In the deployment message I see only one transmission, to the first directory.

I could not find any specific documentation about how a deployment server with more than one mapping works.

For me, it is no problem to configure the remote server to just one remote directory and a copy of this server to the other remote directory and choose the right server from the deployment window. I just woindered what I could do with another mapping from the same server.

Chris

0

Thank you, got it.

Most likely your scenario was just not taken into account when designing the feature. Could you please create an issue in the PhpStorm tracker (it is the host project for file deployment): http://youtrack.jetbrains.com/issues/WI

Regards,
Alexander.

0

Please sign in to leave a comment.