A
A
Adams Ua2018-04-29 02:24:52
Yii
Adams Ua, 2018-04-29 02:24:52

How to implement system copies on a subdomain in Yii2?

Hello, does anyone have a question?
There is a mini CRM on Yii2 when registering, the higher director is indicated, it is
necessary to implement something like a copy of the entire system on subdomains, while the system should be one,
but the admin panel (implemented by the basic template module) does each subdomain have its own?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis, 2018-04-30
@sidni

Well, in a simple way, you can keep a mini-crm zip archive that you will deploy, but a base or migration or dump from the same archive. In your case, the most difficult thing is how to automate the process of creating a subdomain and a database for a project.

M
Maxim Timofeev, 2018-05-01
@webinar

Different entry points, let's say the application config is collected in them. Simply, depending on the subdomain, do different prefixes for the database. You can also have 1 entry point, if auto-subdomains and dynamically add prefixes for the database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question