简体   繁体   English

Git-Heroku部署应用程序,由几个git repos组成

[英]Git - Heroku deploy app that is composed of a couple of git repos

Recently I built an rails app for a local business. 最近,我为本地企业构建了Rails应用程序。 They like this app so much that they've gotten a couple of other local businesses interested in having their own version of the app. 他们非常喜欢这个应用程序,以至于引起了其他一些本地企业对拥有自己版本的应用程序的兴趣。

Here lies the problem that Im uncertain how to fix. 这就是我不确定如何解决的问题。 The core business logic behind the app would be the same for these new and future customers(about 80% of the code). 对于这些新老客户而言,该应用程序背后的核心业务逻辑将是相同的(约占代码的80%)。 Whereas each customer would have their own static pages, as well as their own stylesheets. 每个客户都有自己的静态页面和样式表。

Ive thought about multi-tenancy, but these guys are picky enough that it honestly seems easier to build the app function the way they want, as opposed to building around DB stored customer preferences(perhaps I'm wrong here). 我已经考虑过多租户,但这些人很挑剔,以至于诚实地似乎可以按自己的方式构建应用程序功能,而不是围绕数据库存储的客户偏好进行构建(也许我错了)。

I would like configure this application so that I can push changes to the core business logic without overwriting the customer specific portions of the site. 我想配置此应用程序,以便我可以将更改推送到核心业务逻辑,而不会覆盖网站的客户特定部分。 Perhaps creating a second repo which only contains the customer specific content. 也许创建仅包含客户特定内容的第二个回购。

How do I configure this app/Git repo so that I can personalize the app without creating a bunch of parallel repos? 如何配置此应用程序/ Git存储库,以便无需创建大量并行存储库即可个性化该应用程序?

正如Meagar指出的那样,该方案的解决方案是将这些应用程序的核心业务逻辑封装到一个Gem中,以便日后重用。

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

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