简体   繁体   English

具有多个开发人员和设计人员的PHP网站开发工作流程

[英]Workflow for PHP website development with multiple developers & designers

I thought this had to be a common problem, but I was not able to find an easy solution. 我以为这是一个普遍的问题,但我找不到简单的解决方案。 The problem is, we are working with multiple people on developing a website, without any version control involved. 问题是,我们正在与多个人一起开发网站,而没有涉及任何版本控制。 Which leads to obvious problems with conflicting edits and someone messing up the whole site with no simple way to recover. 这就导致了明显的问题,即编辑冲突和有人将整个网站弄得一团糟,没有简单的恢复方法。 Currently some work with Filezila + Notepad++ directly downloading, additing and uploading the files. 目前,一些与Filezila + Notepad ++一起工作的文件可以直接下载,添加和上传。 Others work with Netbeans on their local copy and upload the files automatically when saving. 其他人在其本地副本上使用Netbeans,并在保存时自动上传文件。

What I would like to do now is intruduce a version control system that still lets everyone work on the live system, but checks for conflicts and allows to rollback files to previous versions. 我现在想做的是引入一个版本控制系统,该系统仍然可以使每个人都在实时系统上工作,但是可以检查冲突并允许将文件回滚到以前的版本。

I tried to set up GIT with a post-receive hook that copies everything to the webroot, but failed in doing so. 我试图用一个后接收钩子设置GIT,该钩子将所有内容都复制到webroot,但是这样做失败。 Besides I think SVN might be a better solution because everyone has just to checkout/commit instead of pull/commit/push. 此外,我认为SVN可能是更好的解决方案,因为每个人都只需签出/提交而不是拉/提交/推送。

  • Is it possible to set up GIT/SVN the way I like to? 是否可以按照我喜欢的方式设置GIT / SVN?
  • Is there a better solution? 有更好的解决方案吗?

The "common" problems come from you letting them work on live website ... “常见”问题来自您让他们在实时网站上工作...
A developer on live will always find a way to ruin your day! 现场开发人员总会找到破坏您生活的方法!

I have an SVN server setup and a cron job on the dev server to pull the latest revision out every 60 seconds. 我有一个SVN服务器设置和一个dev服务器上的cron作业,每60秒提取一次最新修订。 Then I have another script on the live server that isn't croned but I can manually run which updates the live server to the specified revision when I request it. 然后,我在实时服务器上有了另一个未复制的脚本,但我可以手动运行,以便在我请求时将实时服务器更新为指定的版本。

This allows the devs to commit and automatically test on the dev server pretty much real time and then when we've reviewed the code changes etc on the dev server and we're happy with it then I manually run the update on the live server. 这允许开发人员几乎实时地提交并自动在开发服务器上进行测试,然后在检查开发服务器上的代码更改等后,如果我们对此感到满意,那么我将在实时服务器上手动运行更新。

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

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