简体   繁体   English

新手——eclipse工作流(PHP开发)

[英]Newbie - eclipse workflow (PHP development)

this is a bit of a newbie question but hoping I can get some guidance.这是一个新手问题,但希望我能得到一些指导。 I've been playing around with Eclipse for a couple months yet I'm still not completely comfortable with my setup and it seems like every time I install it to a new system I end up with different results.我已经使用 Eclipse 玩了几个月,但我仍然对我的设置并不完全满意,似乎每次我将它安装到新系统时,我最终都会得到不同的结果。

What I'm hoping to achieve is (I think) fairly standard.我希望实现的是(我认为)相当标准的。

In my environment I'd like SVN (currently using Subclipse), FTP support (currently using Aptana plugin), debugging (going to use XDebug) and all the usual bells and whistles of development (code completion, refactoring, etc.)在我的环境中,我想要 SVN(当前使用 Subclipse)、FTP 支持(当前使用 Aptana 插件)、调试(将使用 XDebug)和所有常见的开发技巧(代码完成、重构等)

My biggest current issue is how to set up my environment to support both a 'development' and 'production' server.我当前最大的问题是如何设置我的环境以支持“开发”和“生产”服务器。 Optimally I would be able to work directly against the dev server (Eclipse on my Vista desktop against the VM Ubuntu dev server) and then push to production server (shared hosting).最佳情况下,我将能够直接针对开发服务器(我的 Vista 桌面上的 Eclipse 针对 VM Ubuntu 开发服务器),然后推送到生产服务器(共享托管)。 I'd prefer to work directly against the dev server (with no local project files, just using the Connections provided by Aptana) but I'm guessing this won't allow for code-completoin or all the other bells and whistles provided for development.我更喜欢直接在开发服务器上工作(没有本地项目文件,只使用 Aptana 提供的连接),但我猜这不允许代码完成或所有其他为开发提供的花里胡哨. Any thoughts?有什么想法吗?

Kind of an open ended question, but maybe this could be an opportunity for some of you with a great deal of experience using Eclipse to describe your setups so people like me can get some insight into good ways to get set up.这是一个开放式问题,但对于在使用 Eclipse 描述您的设置方面具有丰富经验的一些人来说,这可能是一个机会,因此像我这样的人可以深入了解设置的好方法。

I always work with local copy of dev.我总是使用 dev 的本地副本。 server environment, so - as you said yourself - I could have full code with auto-completion goodness, but at the same time I am using FileSync plugin for Eclipse which makes things easier - every time I change something - it syncs to the remote dev.服务器环境,所以 - 正如你自己所说 - 我可以拥有具有自动完成功能的完整代码,但同时我正在使用Eclipse 的 FileSync 插件,这使事情变得更容易 - 每次我更改某些内容时 - 它都会同步到远程开发人员. server where I can directly do the testing.我可以直接进行测试的服务器。

That's the dev.那就是开发。 part.部分。 The deployment to production environment has nothing to do with my Eclipse setup directly.部署到生产环境与我的 Eclipse 设置直接无关。 Once I am happy with my current state of project - I commit all things (of course not only then) to CVS (but it not really matters which version control you're using), tag it with some release tag and then use scripts which does the deployment to production machine by given release tag (fetches needed things from CVS by given tag and puts them to production machines).一旦我对我当前的项目状态感到满意 - 我将所有内容(当然不仅如此)提交到 CVS(但您使用的版本控制并不重要),用一些发布标签标记它,然后使用脚本通过给定的发布标签部署到生产机器(通过给定的标签从 CVS 获取所需的东西并将它们放到生产机器上)。

Why not just use Aptana?为什么不直接使用 Aptana? It's still eclipse based and offers Sync/SVN/FTP/SFTP(SSH)它仍然基于 Eclipse 并提供 Sync/SVN/FTP/SFTP(SSH)

Aptana does what you are asking, you define a remote and local directory for the files - you can't use a file path as a remote location but you can use a project as one. Aptana 执行您的要求,为文件定义远程和本地目录 - 您不能将文件路径用作远程位置,但可以将项目用作一个路径。 I have set up a local project and remote project and they sync to each other.我已经建立了一个本地项目和远程项目,它们相互同步。

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

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