目前,我正在开发一个涉及以下日常工作流程的项目:
- 更新本地代码并编辑
- 提交到 subversion 存储库
- ftp 到测试服务器
我一直在使用 Netbeans 来处理所有这些,但坦率地说,它与我正在运行的其他内容相结合,经常耗尽我机器的所有资源,使其运行缓慢。通过切换到更轻量级的文本编辑器、独立的 ftp 客户端和独立的 svn 客户端,我避免了速度变慢和资源占用,但当我在应用程序之间移动时,工作变得更加笨拙。基本上我真的很喜欢 Netbeans,但在我能得到一台更强大的机器(下周的 Macbook Pro?)之前我陷入了困境。
您的工作流程是什么?关于如何改进我的方法有什么建议吗?我可以用 Subversion 以某种方式取消 FTP 吗?
ps Subversion 的使用是一成不变的,所以没有 git。另外,我用的是 Mac。
Currently I am working on a project that involves the following daily workflow:
- Update local code and edit
- commit to subversion repository
- ftp to a testing server
I have been using Netbeans to handle all of this but frankly it, combined with the other stuff I am running, eats up all of my machine's resources frequently leaving it sluggish. By switching to a lighter text editor, a standalone ftp client and a standalone svn client I avoid the slowdowns and resource hogging but working becomes clunkier as I move between apps. Basically I really like Netbeans but until I can get a more powerful machine (Macbook Pro next week?) I am stuck.
What is your workflow? Any suggestions on how I can improve mine? Can I cut out FTP with Subversion in some way?
p.s. Subversion use is cast in stone so no git. Also, I'm on a Mac.
发布评论
评论(4)
在 Mac 上,我使用 TextMate 作为我选择的编辑器。通过捆绑包,您可以使用许多语言来加快开发速度。它有一个 SVN 捆绑包,可让您直接更新/签出/提交。我用它来快速更新/结帐。在我的测试服务器上,我有另一个 SVN 工作目录。我设置了一个 SVN Post Commit hook< /a> 1) 自动使用最新代码更新测试服务器,然后 2) 发送 twitter消息通知其他开发者这一变化。
如果我想在 SVN 存储库(标签、提交日志、差异)上进行更深入的工作,我倾向于使用命令行,或使用专用客户端,例如 基石。
Eclipse 是一个 IDE,还包括与版本控制和 FTP 同步。
On Mac, I use TextMate as my editor of choice. Lots of language goodies for speeding development in whatever language you're doing via Bundles. It has an SVN bundle, which lets you update/checkout/commit directly. I use that for quick updates/checkouts. On my test server, I have another SVN working directory. I set up an SVN Post Commit hook to 1) automatically update the test server with the latest code, and then 2) send a twitter message to inform other developers of the change.
If I want to do more in depth work on the SVN repository (tags, commit logs, diffs) I tend to use the command line, or use a dedicated client like Cornerstone.
Eclipse is an IDE, which also includes syncing with version control, and FTP.
也许在测试机器上安装 svn 并每十分钟左右自动更新一次。或者在特定的时间。
只是一个想法。
萨沙
maybe install svn on the testing machine and do an update automatically every ten minutes or so. Or at a specific time.
Just an idea.
Sascha
几乎所有的编程编辑器(Vim、Emacs 等)都支持 Subversion 集成。
唯一缺少的链接是测试服务器的 FTP。您可以使用 subversion 中的提交后挂钩轻松完成此操作。
如果您还想运行一些预提交测试,请查看我之前编写的这个脚本:
http://code.google.com/p/svn-pre-check/< /a>
Almost all the programming editors (Vim, Emacs, etc) support subversion integration.
The only missing link is the FTP to test server. You can do this easily with a post-commit hook in subversion.
If you want to run some pre-commit tests as well, check out this script I had written some time back:
http://code.google.com/p/svn-pre-check/
如果有人仍在寻找 svn ftp 连接,我建议 svn2ftp。
In case someone is still looking for svn ftp connection i would suggest svn2ftp.