By Administrator on February 9, 2022
Beginner

Note: Erpnext & frappe Versionp-12 above instance need python 3.x.x


Below version-12: instance needed python 2.x.x


step 1: create one folder as per project name using command mkdir folder_name.


step 2: Create vitual environment in new folder using command for version-12=> virtualenv -p /usr/bin/python3 .


Create vitual environment in new folder using command for below version-12=> virtualenv -p /usr/bin/python2 .



step3: Acitvate source using command- source ./bin/activate


step4: clone the code from github ="https://github.com/frappe/bench.git"

using command git clone -b master https://github.com/frappe/bench.git bench-repo



step 5: install bench repo package using:- pip install -e bench-repo

step 6: install frappe framework using command:-

bench init --frappe-branch version-13 --frappe-path https://github.com/frappe/frappe.git frappe-bench(only change the branch name github url are same )





step 7: goto the frappe bench folder


step 8: install ErpNext Application in framework using command

bench get-app --branch version-13 erpnext https://github.com/frappe/erpnext.git




step 9: if any custom app then use below commands:

bench get-app --branch 'branch_Name' application_name git_url


step 10: create database and site using command

bench new-site www.ind.com // bench new-site www.testversion12.com



step11: use current site using command:- bench use www.indictranstech.com


step12: install Erpnext application in site(database) using command

bench install-app erpnext/ bench --site  www.testversion12.com install-app erpnext


step 13: if custom exist install Erpnext application in site(database) using command

bench install-app custom_app/ bench --site www.indictranstech.com install-app custom_app



for runnning multiple servers on same machine:


bench start ----------first server it automatically run on port 8000

bench server --port 8001:--manually run server on port 8001


3rd server

bench server --port 8002-manually running server on port 8002


step 14:after completion of installation check on Ui using command:

bench start(defult port 8000 for custom port setup run:=> bench serve --port    port_namer(like8001,8002))


step 15: Run on google chrome hit URL: 0.0.0.0:8000/localhost:8000/127.0.


More articles on Technical Documents



More articles on Technical Documents
Comments

No comments yet. Start a new discussion.

Add Comment