Tuesday, 20 February 2018

Port based Multitenant erpnext Setup on server

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


Port based multitenancy

bench set-nginx-port mahesh.erpnext.com 9000
bench setup nginx
sudo service nginx reload

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...