简体   繁体   English

通过 ftp 双向同步 netbeans 中的项目

[英]sync project in netbeans both ways via ftp

I have a question about netbeans.我有一个关于 netbeans 的问题。 I made a new netbeans php project, configured it with the existing ftp settings, and it started downloading all the files to my local hd, so far everything is working correctly.我创建了一个新的 netbeans php 项目,使用现有的 ftp 设置对其进行配置,然后它开始将所有文件下载到我的本地高清硬盘,到目前为止一切正常。

but because I'm using a php framework, which will automatically generate some files for me makes a file, it won't be synced to my local hd.但是因为我使用的是php框架,它会自动为我生成一些文件制作一个文件,它不会同步到我的本地高清。

So my problem is as long as I make new files in netbeans it will work correctly, but when files are generated outside netbeans it won't.所以我的问题是只要我在 netbeans 中创建新文件它就会正常工作,但是当文件在 netbeans 之外生成时它不会。

How can I configure netbeans so it will sync both ways via ftp?如何配置 netbeans 以便它通过 ftp 双向同步?

You can't as far as I know.据我所知,你不能。 You have to manually right click on the project/folder you want to update and click Download or Upload.您必须手动右键单击要更新的项目/文件夹,然后单击下载或上传。 Note that this will overwrite any changes on the receiving side (eg downloading files will overwrite local changes and uploading files will overwrite remote file changes).请注意,这将覆盖接收方的任何更改(例如,下载文件将覆盖本地更改,上传文件将覆盖远程文件更改)。

Alternatively, you can have the Upload Files On Save or On Run options enabled, but this will only work for local->remote synchronization scenario.或者,您可以启用“保存时上传文件”或“运行时上传文件”选项,但这仅适用于本地->远程同步方案。 You can access this option by right clicking your project, choosing Properties and following the screenshot below.您可以通过右键单击您的项目,选择“属性”并按照下面的屏幕截图来访问此选项。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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