简体   繁体   English

Eclipse进行版本控制和部署?

[英]version control and deployment with eclipse?

I am working an a php webapp with eclipse as my IDE. 我正在用eclipse作为我的IDE的php webapp。 I would now like to set up a version control system to manage my source code. 我现在想建立一个版本控制系统来管理我的源代码。 I would also like to use the plugin to deploy my code live to the server. 我还想使用该插件将我的代码实时部署到服务器上。 Can anybody recommend a plugin (subclipse?) and perhaps explain how I would use it to deploy my code? 有人可以推荐一个插件(子剪辑吗?),也许可以解释一下我将如何使用它来部署我的代码?

To setup a version control you can try Subclipse 要设置版本控制,您可以尝试Subclipse

"To deploy your code to the server" I guess you meant FTPing files .. you can try SFTP http://www.jcraft.com/eclipse-sftp/ “将代码部署到服务器”,我想您的意思是FTPing文件..您可以尝试SFTP http://www.jcraft.com/eclipse-sftp/

To install Subclipse -- 安装Subclipse-

  1. Open Eclipse. 打开Eclipse。
  2. Choose Help → Software Updates... 选择帮助→软件更新...
  3. Select the Available Software tab, and press the Add Site... button. 选择可用软件选项卡,然后按添加站点...按钮。
  4. In the Add Site dialog box, for the Location, enter: 在“添加站点”对话框中,为“位置”输入:

     http://www.rose-hulman.edu/class/csse/binaries/Eclipse/Subclipse 

    Type carefully (or copy from this web page and paste into Eclipse). 仔细键入(或从此网页复制并粘贴到Eclipse中)。 Case matters. 案件很重要。 No spaces. 没有空间。

  5. Back in the Available Software tab, you will now see some new options. 返回“可用软件”选项卡,您现在将看到一些新选项。 Check the following two checkboxes: 选中以下两个复选框:

     JavaHL Adapter (recommended) Subclipse (required) 

    The subboxes of the above two checkboxes will get checked automatically. 上面两个复选框的子框将被自动选中。

  6. Click Install... 点击安装...
  7. Click Next, then click the button to accept the license agreement. 单击下一步,然后单击按钮以接受许可协议。
  8. It will install automatically (see the progress bar in the lower-right portion of the Eclipse window; wait for it to complete). 它会自动安装(请参阅Eclipse窗口右下角的进度栏;等待它完成)。 Then you will need to restart Eclipse. 然后,您将需要重新启动Eclipse。

To how to use Subclipse read more 有关如何使用Subclipse的信息,请阅读更多

To install SFTP -- 要安装SFTP-

You need Eclipse SDK 3.3(or higher) to enjoy this software. 您需要Eclipse SDK 3.3(或更高版本)才能使用此软件。

  1. Help > Software Updates > Find and Install... 帮助>软件更新>查找并安装...
  2. Choose Search for new features to install 选择搜索要安装的新功能
  3. Click New Remote Site..., and then put http://eclipse.jcraft.com/ for the URL field. 单击“新建远程站点...”,然后在URL字段中输入http://eclipse.jcraft.com/
  4. Choose SFTP Plug-in, and then click Select Required button. 选择“ SFTP插件”,然后单击“选择必需”按钮。

For Eclipse SDK 3.2, try the Update Site http://eclipse.jcraft.com/3.2/ 对于Eclipse SDK 3.2,请尝试更新站点http://eclipse.jcraft.com/3.2/

Tips 提示

* The location 'sftp://192.168.0.1/tmp' will allow you to get accesses to 'tmp' directory under user's home directory. On the other hand, 'sftp://192.168.0.1//tmp' will point to '/tmp' directory on the remote.

Read more regarding SFTP 了解有关SFTP的更多信息

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

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