How to Run/maintain "one" CI3 App hosted on multiple subdomains/ servers. |
Hello,
i am working on a similar project with 1 x CI and N x Clients. So to avoid all the maintanance on the CI i have 1 CI in 1 domain and all the clients has seperate segment. so blabla.com/client1/"the rest of the site", the basic controller is 1 and i have routes to avoid write the controllers etc. so when client1 trying to access the site the route redirect the client1 to controller/client1 and in the controller i use the segmenet 1 to do the db connections etc. I have an admin DB with all the info of the other dbs encrypted etc but I couldnt avoid the multiple databases for the clients. But ofc if you do 1 mistake all sites will be down, but i guess if you have a demo page with the same configuration you can do the tests there and update the main page. you can move the system and app folder outside of the main domain for safety reasons mostly ( check here https://www.codeigniter.com/user_guide/i...index.html ). I am not sure if this is right or wrong heheheh |
Messages In This Thread |
How to Run/maintain "one" CI3 App hosted on multiple subdomains/ servers. - by bartMommens - 08-01-2019, 01:42 AM
RE: How to Run/maintain "one" CI3 App hosted on multiple subdomains/ servers. - by mboufos - 08-01-2019, 01:52 AM
RE: How to Run/maintain "one" CI3 App hosted on multiple subdomains/ servers. - by bartMommens - 08-01-2019, 02:24 AM
RE: How to Run/maintain "one" CI3 App hosted on multiple subdomains/ servers. - by mboufos - 08-01-2019, 02:43 AM
RE: How to Run/maintain "one" CI3 App hosted on multiple subdomains/ servers. - by bartMommens - 08-01-2019, 05:03 AM
|