php PhpStorm,关于 ftp 同步
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/8611326/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
PhpStorm, about ftp sync
提问by Joseph Woodward
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?
只是尝试了这个 IDE,但它在速度和可用性方面看起来已经比 NetBeans 好。但是,我选择它的主要原因是 ftp 同步功能,它似乎不起作用?当我从现有文件-> 从远程服务器 ftp 创建新项目时,它会下载文件,仅此而已。如果我用打开的目录打开它,它不会将更改上传到服务器。那么我做错了什么?
采纳答案by CrazyCoder
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.
File
| Synchronize
根本与远程主机无关,它会将文件与文件系统同步,以防由于某种原因未自动检测到外部更改,或者您已禁用帧激活时的自动文件同步。
回答by Joseph Woodward
With your project loaded, go to settings by either going to File > Settings or by pressing CTRL+ ALT+ S.
加载项目后,转到“文件”>“设置”或按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.
还值得勾选下面的“上传外部更改”设置;这将通过删除/重命名等您所做的任何文件更改来保持您的本地副本和 ftp 副本同步。
回答by Lewison Chen
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".
当您要以真正的方式将文件与远程 ftp/sftp 服务器同步时。您应该使用“工具/部署/上传到 xxxxx”。
i think this will do help to u.
我认为这对你有帮助。
回答by Vahur
After ticking "Uploaded changed files automatically to the default server" and setting up FTP server and its mapping, click on the button "Use this server as default" in the mapping tab.
勾选“自动将更改的文件上传到默认服务器”并设置FTP服务器及其映射后,单击映射选项卡中的“将此服务器用作默认服务器”按钮。
回答by richard
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
选中自动上传后,它甚至在我完成对 PHP 文件的更改并导致不完整的脚本文件之前自动上传文件。它也在其他标签页上传文件。PhpStorm 中的上传好像没有精确的控制