Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Ruby on Rails 中,我想从 admin 创建多个域。这里的域绑定到一个租户。租户有很多域。
如何做到这一点。有没有办法从管理 UI 创建域?但是该域应该绑定到单个租户。
另外我想测试租户是否工作?请提供一些建议以及链接(如果有)?
我建议您在 cpanel 域映射中进行简单的通配符映射,然后创建具有子域名的租户作为租户,如 Google.yourapp.com。当租户用户点击 URL 时,子域映射将指向您的代码库,任务很简单。让我知道这是否适合您的情况。