一个站点上的多个开发人员 (PHP)
与 PHP 没有直接关系,但目前我们有 3 名开发人员在一个站点上工作。我们使用共享主机,因此无法安装 svn 或 cvs。
已解答
有什么办法可以对共享主机实现版本控制吗?
未答复
顺便说一句,我看到很多开发人员在他们的文件顶部都有一条评论,即几年前我使用 Invision Power Board 时得到的一条评论
/** * 远见电力服务
* IP.Board v3.0.5
* 用于与 stopforumspam.com 连接的包装器
* 由 Matt Mecham 编写的课程
* 最后更新:$日期:2009-02-04 20:05:25 +0000(2009 年 2 月 4 日星期三)$
*
* @author $作者:bfarber $
* @版权 (c) 2001 - 2009 Invision Power Services, Inc
* @license http://www.invisionpower.com/community/board/license.html< /a>
* @package Invision Power 服务内核
* @link http://www.invisionpower.com
* @自 2005 年 2 月 22 日星期二 (16:55)
* @version $修订版:222 $
*/
是否有办法自动将这些生成到文件中,同时更新“上次更新:”部分?
谢谢 :)
Not a direct relation to PHP but at the moment we have 3 developers working on one site. We are using shared hosting so cant get svn or cvs installed.
Answered
Is there any way we can implement version control on shared hosting?
Unanswered
On a side note, I have seen a lot of developers have a comment at the top of their files, i.e. this one from Invision Power Board I have from using it a few years ago
/**
* Invision Power Services
* IP.Board v3.0.5
* Wrapper for interfacing with stopforumspam.com
* Class written by Matt Mecham
* Last Updated: $Date: 2009-02-04 20:05:25 +0000 (Wed, 04 Feb 2009) $
*
* @author $Author: bfarber $
* @copyright (c) 2001 - 2009 Invision Power Services, Inc
* @license http://www.invisionpower.com/community/board/license.html
* @package Invision Power Services Kernel
* @link http://www.invisionpower.com
* @since Tuesday 22nd February 2005 (16:55)
* @version $Revision: 222 $
*/
Is there anyway to automatically generate these into files, also updating the "Last Updated:" section?
Thanks :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
最简单的解决方案是使用 Git/Mercurial/SVN/等。 (不是 CVS,它古老且可怕)在开发期间编写一个部署脚本,将最新的版本标签或只是最新的快照上传到共享托管服务器。
该脚本显然位于本地网络中的某个位置,所有开发人员都可以访问它 - 您可能需要添加一些检查是否另一个部署已经在运行,因此如果开发人员 1 已经启动了它并且尚未完成,则开发人员 2 无法启动它然而。
The easiest solution would be using Git/Mercurial/SVN/etc. (not CVS, it's ancient and horrible) during development and write a deployment script which uploads either the newest release tag or simply the most recent snapshot to your shared hosting server.
That script would obviously be located somewhere in your local network where all devs can access it - you might want to add some checks if another deployment is already running so dev 2 can't start it if dev 1 has already started it and it's not finished yet.
主机根本没有必要能够运行版本控制系统。但你一定要把它引入到你的开发环境中!
我们使用 SVN 而不是 unfuddle 来开发所有项目。这意味着我们拥有所有项目的中央存储库,我们从其中进行提交/更新。有许多便宜或免费的仓库空间,例如 GitHub、unfuddle 或 Google 代码。
您所需要的只是这样一个空间、一个支持版本控制(每个 IDE 都必须)的 IDE 和一个合适的部署策略,这意味着在正确的时间将正确的文件上传到服务器的好方法等等。通常您标记稳定您的应用程序的版本并上传这些存储库标签。
It is not necessary at all that the hosting has the possibility to run the revision control system. But you definitely have to introduce it into your development environment!
We develop all our projects using SVN over unfuddle. This means we have central repositories for all our projects, where we commit to/update from. There are many cheap or free repo spaces like GitHub, unfuddle or Google Code.
All you need is such a space, an IDE that supports revision control (with every IDE has to) and a suitable deployment strategy, meaning a good way of uploading the right files to the server at the right moment, etc. Usually you tag stable versions of your app and upload these repo tags.
尝试 beanstalk svn http://beanstalkapp.com/
try beanstalk svn http://beanstalkapp.com/