简体   繁体   中英

PhpStorm, about ftp sync

Just trying out this IDE but it already looks better than NetBeans in terms of speed and usability.. However, the main reason I chose it was the ftp sync feature, which.. doesn't seem to be working? When I create new project from existing files -> from remote server, ftp, it downloads the files and that's it. If I open it with open directory it doesn't upload changes to the server. So what am I doing wrong?

With your project loaded, go to settings by either going to File > Settings or by pressing CTRL + ALT + S .

From here go to Deployment > Options and then tick the "Uploaded changed files automatically to the default server".

It's also worth ticking the "Upload external changes" setting below; this will keep your local copy and the ftp copy synchronized by removing/renaming etc any file changes you make.

Please refer to the corresponding help section . For the synchronization feature see Comparing Deployed Files and Folders with Their Local Versions .

File | Synchronize is not related to remote hosts at all, it synchronizes the files with the file system in case external changes were not detected automatically for some reason or you've disabled automatic files synchronization on frame activation.

when you are going to the real way to sync your file with the remote ftp/sftp server. You should use the "Tools/Deployment/Uploads to xxxxx".

i think this will do help to u.

勾选“自动将已更改的文件上传到默认服务器”并设置FTP服务器及其映射后,单击映射选项卡中的“将此服务器用作默认值”按钮。

With Automatic Uploads checked ON, it is uploads files automatically even before I'm done making changes to the PHP files and resulting in INCOMPLETE script files. It is also uploading files in other tab pages. Looks like there is no precise control on uploads in PhpStorm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM