简体   繁体   English

具有Java Code Git存储库组织的JRuby Rails项目

[英]JRuby Rails Project with Java Code Git Repository Organization

Any advice on Git repository organization for starting a new project on JRuby that will have a Java Server component and Ruby on Rails component? 关于Git存储库组织的关于在JRuby上启动一个具有Java Server组件和Ruby on Rails组件的新项目的任何建议? I'm guessing that I put the Java and Ruby parts in separate repositories. 我猜想我将Java和Ruby部分放在单独的存储库中。 What would be the pros and cons of putting them in one repository versus separate ones? 将它们放在一个存储库而不是单独的存储库中有什么利弊?

You should create two repositories if the development of one project does not affect the other directly (ie moving files from one part to the other, renaming variables, global data, or connections...). 如果一个项目的开发不会直接影响另一个项目(即,将文件从一个部分移至另一部分,重命名变量,全局数据或连接...),则应创建两个存储库。

Also, if different users will code each part is best to split them. 同样,如果不同的用户将编码每个部分,则最好将它们分开。

Thinking on releasing, does one new version of one part means a new version for the other? 考虑发行时,一个部分的一个新版本是否意味着另一个部分的新版本? If the answer is no you definitely want to have different repositories. 如果答案是否定的,那么您肯定要拥有不同的存储库。

At the end, either with a single or with two repositories, since is git you can split or join them later, though it will take your time. 最后,只有一个或两个存储库,由于是git,因此您可以稍后拆分或加入它们,尽管这会花费一些时间。

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

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