think-multi-app icon indicating copy to clipboard operation
think-multi-app copied to clipboard

建议:多入口对应应用的下多目录

Open dragonlhp opened this issue 4 years ago • 4 comments

现有的方式是index 入口对应index应用,admin入口对应admin应用目录。 image

在构建一个完整应用平台的时候,index(H5页面或PC门户输出),admin(后台管理),api接口管理。按照现有的方式构建平台,需要在每个逻辑上分别在三个应用上添加业务代码。 建议多应用的另外一种模式:入口文件和每个应用下的模块对应,例如: image 这样的方式能灵活的构建应用,每个应用可以独立部署,整体上维护方便,当需要拆分的时候也能快速把应用剥离出来! 望采纳!

dragonlhp avatar Feb 02 '21 07:02 dragonlhp

多应用只是一个扩展 官方旨在抛砖引玉 所以完全可以自己开发一个扩展替换

liu21st avatar Feb 03 '21 13:02 liu21st

对于前后端分离的项目 其实更建议使用单应用设计

liu21st avatar Feb 03 '21 13:02 liu21st

另外 入口文件的访问是你自己决定的 在入口文件里面也是可以绑定应用的

liu21st avatar Feb 03 '21 13:02 liu21st

感谢!自己动手咯!

------------------ 原始邮件 ------------------ 发件人: "ThinkPHP"<[email protected]>; 发送时间: 2021年2月3日(星期三) 晚上9:21 收件人: "top-think/think-multi-app"<[email protected]>; 抄送: "waiting for you"<[email protected]>; "Author"<[email protected]>; 主题: Re: [top-think/think-multi-app] 建议:多入口对应应用的下多目录 (#29)

多应用只是一个扩展 官方旨在抛砖引玉 所以完全可以自己开发一个扩展替换

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

dragonlhp avatar Feb 03 '21 13:02 dragonlhp