English 中文(简体)
是否有任何人尝试建立多功能/多数据基/单一部署铁路?
原标题:Has anyone tried a multi-domain/multi-database/single-deployment Rails setup?

我正在开发一个有少数几套用户的器具(主要是内联网),每个公司在内部使用该信。

到目前为止,每个用户都有自己的部署,有单独的域名和数据库,但都生活在同一个服务器上。 这意味着,每当我必须推动升级时,每客户都需要部署一次。 此外,每个新客户都意味着增加一个新的部署目标,目前Im正在使用Capistrano的多阶段假胜地,但是它却正在变得微不足道。

这不是理想的安排,因此,在我提出一些想法,即修改建议,以便它处理多个领域,每个领域都绘制成一个不同的数据库,但进行单一部署。 我创建了一个小的概念证明器,基本上有之前的过滤器,作为多个领域/数据库的多重服务器,将主动查询与每个领域的数据库联系起来。 这确实是好的,但我没有把这个问题应用到很远的地方,我可以认为,至少有一个问题落在道路上:管理所有数据库的移民。 我很相信,我可以围绕这一点开展工作,不过,也许我会把 r忙的任务推给少数人,但我担心,这可能不是问题的最后一点。

是否有任何人试图这样做,或能够想到任何重大原因,为什么这样做是坏的想法? 我想听取一些意见。

感谢!

最佳回答

通常称为多功能:Here,是铁路上介绍或录像。 如果说是好的,那就会在工作时受阻。

不管怎么说,这个想法都不错。 我不敢肯定你的具体执行,但我曾努力评估过去是多方面的,而且可以说,除非麻烦客户希望留在产品遗产版本上,而且我们希望向前迈进,否则我们就面临很大困难。

问题回答

我与你有着类似的看法,而且问题仍然与你一样,经过许多尝试,我最终(在理想的核心解决办法出现之前),每个领域都有一只字面文件,并像你这样的过滤器。

我早就在生产中工作了将近1年,唯一发现的问题是,铁路预计主干(即使你获得了使用)的移民水平与其它人相同。 (这个问题在某些条件下出现)

如果你需要进一步的细节,我就知道。

我希望这一帮助。





相关问题
rails collection_select vs. select

collection_select and select Rails helpers: Which one should I use? I can t see a difference in both ways. Both helpers take a collection and generates options tags inside a select tag. Is there a ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

activerecord has_many :through find with one sql call

I have a these 3 models: class User < ActiveRecord::Base has_many :permissions, :dependent => :destroy has_many :roles, :through => :permissions end class Permission < ActiveRecord::...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

Text Editor for Ruby-on-Rails

guys which text editor is good for Rubyonrails? i m using Windows and i was using E-Texteditor but its not free n its expired now can anyone plese tell me any free texteditor? n which one is best an ...

How to get SQL queries for each user where env is production

I’m developing an application dedicated to generate statistical reports, I would like that user after saving their stat report they save sql queries too. To do that I wrote the following module: ...

热门标签