如何设置在同一服务器上运行的两个Codeigniter应用程序 [英] how to set up two codeigniter applications running on same server

查看:71
本文介绍了如何设置在同一服务器上运行的两个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.

这篇关于如何设置在同一服务器上运行的两个Codeigniter应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆