In Software, multi-tenancy is an architecture in which a single instance of a software application serves multiple customers, who are called tenants. The application can be offered as a service or as a platform.
Companies today are leveraging software as a service, or SaaS, to provide data protection in a package that results in superior security, better economics and reduced overhead. One of the ways we do this is through multi-tenant architecture.
In today’s video, we will loon at how to implement multi-tenancy in ERPNext and the Frappe Framework.
Steps needed
bench config dns_multitenant on
bench new-site first.site
bench setup nginx
sudo service nginx reload
bench –site first.site install-app erpnext
After this is successful, navigate to /etc/hosts and make the following changes.
Please take into account the name of your sites. You will need to add a route for every site you add.
Add routes:
127.0.0.1 first.site
127.0.0.1 second.site