PHPStorm remote Develoyment problem

Hello everyone,i have an centos server on my virtualBox,I use PHPStorm "Crete new project from exist files",and select "web server on a remote host...",and then i can modify file and use "Ctrl+S" save and upload to my centos server,but what problem is that the file has updated on the server,but when i use browser to reflesh the web page, there is nothing changed.And when i use FTP tool like WinSCP or FileZilla to update it,the web will be changed immediately.That is my problem,i don't know where i had made an mistake or anyother,help me.

6 comments
Comment actions Permalink

After you upload your changes to the remote server with PhpStorm, could you please check if the file has actually been updated with WinSCP?

I suppose the issue is with the mappings, you are uploading the files to the wrong location. Please share screenshots of the Connection and the Mappings tabs for your deployment configuration.

0
Comment actions Permalink

Dear @Eugene Morozov,thanks for your help.i am sure that the upload to the remote server with PhpStorm has actually been updated,yes,i use WinSCP to confirm it.

Here is my deployment configuration screenshots of the Connection and the Mappings tabs.

0
Comment actions Permalink

Technically, there should be no difference how exactly this file is uploaded if you can confirm that it is there.

 

What file type is it, PHP or HTML?

Does the Ctrl+F5 refresh in your Web Browser change anything?

 

By the way, would it be possible to record a short screencast with a simple illustration of the whole process? Like this one:

- Upload the file to the FTP server via WinSCP/FileZilla and check if the web page is changed:

- Repeat the same procedure via PhpStorm and try to refresh the page;

- Open the FTP server location via WinSCP/FileZilla and show the actually changed file?

Probably, there is something really simple that we may notice.

0
Comment actions Permalink

Thanks for your attention,and the file type is PHP,i am sorry about that maybe i can not to record a screencast,but i can give something more about that.

Actually when i change the file uninterruptedly,it works well,the Web Browser changed immediately,but when i do it after a few minute later,it can be lazyload on my Web Browser,what is lazyload that i mean is the Web Browser will be changed after a few second,not changed immediately.

the other thing is when i use Server Group on PhpStorm(2019.2.3),and press "Ctrl+Shift+Alt+X" to choose sever to upload to,it seem works well,too.

That means maybe it only happened on i use "Ctrl+S" to save and upload to VirtualBox(Centos),and the Upload changed files automatically to the default server option that on "Deployment->Options" is Always.

That is all,if you want more,just tell me.

0
Comment actions Permalink

Please try disabling Settings | Build, Execution, Deployment | Deployment | Options | Preserve files timestamps, would that change anything?

1
Comment actions Permalink

Oh,yes,i was cancled the selection that you said yesterday,with the Server Group and press "Ctrl+Shift+Alt+X" to update the file is works very well.Maybe i can update file to server with this method in the future,Thanks a lot.PhpStorm is a great product.

0

Please sign in to leave a comment.