I am using the same SuiteCRM 8 folder/codebase to create multiple CRM instances on different domains.
For each instance, I currently make the following changes:
Update database name in .env.local
Update database name and site URL in config.php
Apart from these, I would like to know:
What other configurations should be changed when using the same CRM code on multiple domains?
Are there any environment-specific files or settings (cache, logs, sessions, permissions, etc.) that should be separated?
Is this approach recommended for production, or should each domain have a separate codebase?
Any best practices to avoid issues related to caching, security, upgrades, or performance?
Looking forward to guidance from the community.
Thank you in advance.
I can’t advise on some of the issues you raised, I am not sure of the details; but regarding the codebase I guess a git setup will be helpful.
That way you can have versioning, keep all files safely, and it’s not too hard to spread your custom changes from one server to the other by cherry-picking commits.
This also has its complexities; how to handle upgrades, how to handle changes made via the UI (some companies prefer to disable Studio and Module Builder for their clients, so that all changes are generated via code and commited properly.
You need a careful setup of your .gitignore; and I never get this right at first, it’s always trial-and-error.
I know this is not very detailed or complete, but I hope it helps, and maybe someone else has more tips?