开发者

PHP remote project and subversion

I am working on a live remote php project in eclipse. ie, I just connect the the project using RSE edit the files and save.

I have recently setup subeclipse and am wondering if there is an way to add my php files to a subv开发者_如何学Cersion project while still working on the live project? Or maybe there is a better way to do this and get the same result.


You can't use the live version as the subversion repository directly but a common approach is, that you run a Subversion Post-Commit hook whenever you commit to your repository. The hook is just a basic shell or batch script that gets executed after a certain event. In this hook you export the current revision from the repository to the live system. In this case, if you commit errors into subversion you will have the errors in the live system right away which might be dangerous.

The alternative would be to use a build tool like ant which does the deployment of the application from the repository for you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜