如何设置在同一服务器上运行的两个Codeigniter应用程序

问题描述:

几个月前,我构建了一个Codeigniter应用程序-它是一种联网工具。
现在我的客户希望我为他们构建一个报表应用程序-访问网络工具所使用的同一数据库,但实际上并没有关系。

I build a codeigniter app a few months ago - it's a networking tool. Now my client wants me to build a reporting application for them - accesses the same database the networking tool does, but it's not really related.

我已经将Codeigniter的新/新副本下载到www下的新文件夹中,但是现在我想知道这是设计解决方案的正确方法..身体上。
是否有人尝试在同一服务器上构建多个ci应用程序?我应该/可以组合不同的应用程序,以便它们使用相同的ci代码副本吗?
我已经读过有关HMVC的文章。这适用于这里吗?我现在也将去google进行阅读,但是如果您能以正确的方向指出我的话,那就太好了。
任何评论将不胜感激。

I've downloaded a fresh / newer copy of codeigniter into a new folder under www ... but now I'm wondering this is the right way to architect the solution .. physically. Has anyone else tried building multiple ci applications on the same server? Should I be / Can I combine disparate apps so that they use the same copy of the ci code? I've read somewhere about HMVC. Does that apply here? I'm going to google now as well to read up on it, but if you can just point me in the right direction, that'd be great. Any comments would be appreciated.

您可以执行任何一项操作。

You can do either.

请参见 http:/ /ellislab.com/codeigniter/user-guide/general/managing_apps.html 了解有关使用同一CI安装来运行多个站点的详细信息。

See http://ellislab.com/codeigniter/user-guide/general/managing_apps.html for details on using the same CI install to run multiple sites.

您可以在另一个文件夹中创建另一个CI安装,然后将服务器软件或用户指向该文件夹。

Alternatively, you could create another CI install in another folder and point your server software or users at it.