PHPStorm says: Deployed file on 'myServerName' is removed

Hello,

I want PHPStorm to automatically upload/deploy all (changed) files to my testing server when I hit save. I set this up in the deployment configuration and it seems to work for more than 95% of the files but some files of the project just don't get uploaded automatically.

When I open these files that didn't get uploaded automatically (I had to find out the affected files manually) it shows the following message in the top of the opened file:

"Deployed file on 'myServerName' is removed"

I have then the option to click "Delete local file". But what I actually want is that PHPStorm uploads all local files, that are not on the server yet!

How can I achieve that?

 

Thank you!

0

Could you please show a screenshot with "Build, Execution, Deployment | Deployment | Options" settings window?

0
Avatar
Permanently deleted user

Here's the screenshot of the "Build, Execution, Deployment | Deployment | Options" settings window:

0

Thanks for sharing the screenshot. Looks like, some options are missing (like "delete remote files when local files are deleted") that should present in the most recent 2020.3.1. What version of IDE do you have installed?

0
Avatar
Permanently deleted user

Ok, upgraded to the newest version. Now my settings window looks like this. But still some files won't get uploaded automatically.

0

Do you still get the "Deployed file on 'myServerName' is removed" message or the behaviour has changed now? Did you notice any kind of a pattern, like what specific files are affected and when?

0
Avatar
Permanently deleted user

Thanks for trying to help. Yes, I get the same message on the top of the file: "Deployed file on 'myServerName' is removed".

It affects files that are newly added to my local project (through checking out a different branch that includes new files and not through PHPStorm).

0

Basically, I have tried to reproduce the issue by manually removing the file from FTP server or by checking out a different branch with the new file but things are working fine for me, files are uploaded anew without any issues.

Is there any stable step-by-step scenario that I may test?

0

请先登录再写评论。