Tuesday, 20 February 2018

How to setup erpnext on server DNS based multitenancy

Install python

apt-get install python-minimal
apt-get install build-essential python-setuptools

Install Git
apt-get install git

 Run the install script
 For Dveloper
 python install.py --develop --user frappe

For production:
sudo python install.py --production

After successfull installation switch user frappe
su frappe
then cd
then cd frappe-bench

First create your site using 
bench new-site mahesh.erpnext.comm

Then istall that site with Erpnext
bench --site mahesh.erpnext.com istall-app erpnext

Migrate your database
bench migrate

Choose your site
bench use mahesh.erpnext.com


DNS based multitenancy
On the dns 
bench config dns_multitenant on
bench setup nginx
bench setup nginx

No comments:

Post a Comment

Django rest api - filter

views.py from django_filters.rest_framework import DjangoFilterBackend class PollList(viewsets.ModelViewSet):     queryset = X.objects...