Netbeans-打开远程文件夹/新项目 [英] Netbeans - Open remote folder/new project

查看:291
本文介绍了Netbeans-打开远程文件夹/新项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Netbeans几个月了,并且非常喜欢.我正在尝试提供一种创建项目的方式,该项目可以访问服务器上的实时文件以进行更改.当我使用远程源创建项目时,它开始将所有服务器文件下载到我的计算机上.那就好了,除了以下事实:(a)服务器上有一些演出文件,并且(b)我们中的两个人将在服务器上进行更改.

I have been using Netbeans for several months now and like it a lot. I am trying to enable a way to create a project which accesses live files on my server to make changes. When I create a project using a remote source, it starts downloading all the server files to my computer. This would be just fine, except for the fact that (a) the server has a few gigs of files on it and (b) there are two of us that will be making changes on the server.

过去,我使用的IDE仅打开FTP或SFTP连接,并会下载要编辑的文件,然后在保存文件时将其上传回服务器.最好,这就是我希望Netbeans要做的.

In the past, I have worked with IDEs that just open an FTP or SFTP connection and will download the file you want to edit, and then upload that file back to the server when you save it. Preferably, this is what I would like Netbeans to do.

我尝试在Windows中添加FTP文件夹,但是Netbeans无法打开它.我尝试使用Swish并设置了SFTP文件夹,但Netbeans完全找不到Swish文件夹.

I have tried adding a FTP folder in Windows, but Netbeans won't open it. I have tried using Swish and setting up an SFTP folder, and Netbeans won't find the Swish folder altogether.

从侧面看,我知道我在做的事情是可怕的做法,但这是一个很小的站点,通常我是唯一从事此工作的站点.我过去几周没有在网站上工作,只是认为直接访问比重新下载整个服务器的代码/图像/视频/等容易.任何帮助将不胜感激.

On a side note, I understand what I am doing is horrible practice, but it is a small site and I am usually the only one working on it. I haven't worked on the website in the past several weeks and just thought it would be easier to get access directly than re-downloading the entire server's worth of code/images/videos/etc. Any help would be appreciated.

推荐答案

NetBeans不支持您要执行的操作.但是,如果您将站点置于Subversion/Git(修订控制)下,则可以签出内容,在本地进行修改,然后将其推回远程.

NetBeans does not support what you want to do. However, if you put your site under Subversion/Git (revision control), you could check out the content, modify it locally and push modification back remotely.

这也有助于避免当您的朋友也在您的网站上工作时发生代码冲突.

This would also help avoiding code clashes when your friends work on your website too.

这篇关于Netbeans-打开远程文件夹/新项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆