[英]Workflow for webapplication development without local development servers using git(hub) 1 coder + 1 webdesigner
I am a programmer and in near future I am going to work together with a web/template designer on several projects. 我是一名程序员,在不久的将来,我将与Web /模板设计师一起在多个项目上合作。 What do you think about my development workflow setup?
您如何看待我的开发工作流程设置? Do you have any optimization tips?
您有任何优化技巧吗?
How do you generally handle the situation where you cannot have local development-servers for each project-member (because the application is not able run locally)? 您通常如何处理每个项目成员都不能拥有本地开发服务器的情况(因为该应用程序无法在本地运行)? It seems really unprofessional to have one testserver where everybody can upload files via ftp to try their stuff, because it can easily happen that someone overwrites someone elses files so testing will fail.
拥有一个测试服务器,每个人都可以通过ftp上传文件来尝试他们的东西,似乎真的很不专业,因为有人很可能会覆盖别人的文件,从而导致测试失败,这很容易发生。 Is there a best-practice example of how to develop in a team when there is no local testing server?
没有本地测试服务器时,是否有一个最佳实践示例,说明如何在团队中进行开发?
Thanks in advance for you help and sorry about my english, its not my native language. 在此先感谢您的帮助,对于我的英语(不是我的母语)感到抱歉。
Git is a distributed version control system, so it works best when everyone who is working on the project has their own development environment in which they can work with. Git是一个分布式版本控制系统,因此,当每个在项目上工作的人都有自己可以使用的开发环境时,它会发挥最佳作用。 I don't personally recommend using Git for a project where you are actually testing the app on a single server.
我个人不建议在实际在单个服务器上测试应用程序的项目中使用Git。 I recommend that you use a centralized version control system like Subversion .
我建议您使用集中式版本控制系统,例如Subversion 。 Unfortunately by using subversion you won't be able to host the repository on Github (you'd have to use a system like Git-SVN which would get a bit complex)
不幸的是,通过使用Subversion,您将无法在Github上托管存储库(您必须使用类似Git-SVN的系统,这会变得有些复杂)
I would do this the following way: 我将通过以下方式执行此操作:
When ever you start work on a new feature you make a branch based on master. 每当您开始使用新功能时,都将基于master创建分支。 Once it is working as expected on your local machine you can commit it and merge it into dev and push to github.
一旦它在本地计算机上按预期工作,您可以提交它并将其合并到dev中并推送到github。 Its usually good to have a hook that updates the test server each time new code is pushed.
拥有一个钩子通常在每次推送新代码时更新测试服务器通常是一件好事。
Once the feature has passed testing you could merge the feature branch into master and push that to your production environment. 功能通过测试后,您可以将功能分支合并到master中,并将其推送到您的生产环境中。
If you want to fomalise the process around creating features, merging to branches and doing tagged releases etc then git-flow is a good option. 如果您想围绕创建功能,合并到分支以及执行带标签的发布等流程,那么git-flow是一个不错的选择。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.