在rails项目之间共享代码 [英] Share code between rails projects
本文介绍了在rails项目之间共享代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$ b文件和历史之间的两个git-repository
$ b
我有多个rails项目(在一个git中),它们有一些常见的CSS,布局和帮助器。我在项目之间共享这些文件的第一个解决方案是设置一些符号链接,但我不完全相信这是要走的路。是否有一些更好的解决方案,或者是符号链接也许罚款?
解决方案是的,符号链接是一个好方法,我可能也会这样做。
Possible Duplicate:
Can you share a file and it's history between two git repositories?
I have multiple rails projects (in one git), which have some common CSSs, layouts and helpers. My first solution to share those files between the projects was to set up some symlinks, but I'm not totally convinced this is the way to go. Is there some nicer solution, or are symlinks maybe fine after all?
解决方案
Yes, symlinks is a good way to go, i would probably do that as well.
这篇关于在rails项目之间共享代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文