PHP IDE--想用FTP同步本地存储 [英] PHP IDE--Want to sync local storage with FTP

查看:19
本文介绍了PHP IDE--想用FTP同步本地存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用 Notepad++ 进行大部分开发.我一直在查看其他功能更齐全的选项,并想切换(到目前为止,我特别喜欢 Aptana),但我非常喜欢 Notepad++ 的一件事,但我一直无法获得迄今为止.

我目前的工作流程是这样的:工作流程(我尝试嵌入这张图片,它显示在预览中,但不在帖子中,抱歉)工作流程 http://evanalyze.com/images/workflow.jpg

流程是这样的:

  1. 从网络服务器下载文件
  2. 在 NP++ 中进行编辑
  3. 保存(这会自动将本地副本保存在我的默认目录中,这也是我使用 Subversion 和 Tourtise SVN 设置的文件夹)
  4. 当我想提交对 SVN 的更改时,请查看具有最新副本的本地文件夹

我不知道如何使用 Aptana 自动存储我从服务器下载的文件的本地副本,编辑并保存回服务器.有没有办法做到这一点?如果是这样,那将立即解决我的问题.

其他选项将是一个更好的方法来管理我的服务器、我的编辑器和我的 SVN 存储库之间的关系的建议.我知道 Aptana 也可以访问我的 SVN 存储库.有没有一种简单的方法可以在我想要的时候从 Aptana 内部提交更改(这意味着我可以将 Tourtise 排除在等式之外)?

任何建议表示赞赏.谢谢.

解决方案

我觉得你做的事情有点奇怪.

您已经在 SVN 存储库中拥有所有信息,为什么不利用它呢?

您在计算机上保留一份工作副本用于开发和测试.保存并提交对 SVN 的更改.在您的服务器上,执行 SVN export(或 checkout,使用适当的服务器规则来阻止对 .svn 文件夹的 Web 访问),然后您好甜!

<前>-------------- -------------- ---------------|本地工作副本 |<---> |SVN 回购 |<---> |直播服务器 |-------------- -------------- ---------------

这意味着您永远不必担心 FTP,也不必弄清楚哪些文件已在本地更改并因此需要更新.

I currently use Notepad++ for most of my development. I have been checking out other, more full-featured options and would like to switch (I'm in particular a fan of Aptana so far) but there is one thing about Notepad++ that I really like and I haven't been able to get so far.

My current workflow is something like this: Workflow (I tried to embed this image and it showed up in previews but not in the post, sorry) Workflow http://evanalyze.com/images/workflow.jpg

The process is this:

  1. Download file from web server
  2. Make edits in NP++
  3. Save (this automatically saves a local copy in my default directory, which is also the folder I have setup using Subversion with Tourtise SVN)
  4. When I want to commit a change to SVN, go through the local folder that has an up to date copy

What I can't figure out how to do with Aptana is automatically store a local copy of a file I download from my server, edit and save back to the server. Is there some way to do this? If so, that would solve my problem immediately.

Other options would be a suggestion for a better way to manage the relationship between my server, my editor and my SVN repository. I know Aptana can access my SVN repository too. Is there an easy way to commit changes from within Aptana when I want to (which means I could take Tourtise out of the equation I guess)?

Any suggestions appreciated. Thanks.

解决方案

I think you're doing things a bit strange.

You already have all your information in an SVN repository, so why not take advantage of that?

You keep a working copy on your computer for development and testing. Save and commit your changes to SVN. On your server, do an SVN export (or checkout, with appropriate server rules to block web access to the .svn folders), and you're sweet!

----------------------         ------------         ---------------
| Local Working Copy |  <--->  | SVN Repo |  <--->  | Live server |
----------------------         ------------         ---------------

This means you never have to worry about FTP, or have to figure out which files have been changed locally and hence need to be updated.

这篇关于PHP IDE--想用FTP同步本地存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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