Step:1 sudo apt update sudo apt -y upgrade sudo apt autoremove Step:2 Install python 3.7 sudo apt install software-properties-common sudo add-apt-repository ppa:deadsnakes/ppa sudo apt update sudo apt install python3.7 Step:3 Install Dependency sudo apt-get install -y python3-testresources Step: 4 Install Python pip Tool wget https://bootstrap.pypa.io/get-pip.py sudo python3 get-pip.py sudo pip3 install --upgrade pip3 setuptools [ Alternative - Execute if the command above fails. 1) curl https://bootstrap.pypa.io/get-pip.py | python3 2) pip install --upgrade setuptools ] sudo pip3 install ansible Step:5 Install curl and yarn sudo apt -y install curl curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt -y update && sudo apt -y install yarn Step: 6 Install MariaDB 10.4 sudo apt-get install software-properties-common sudo apt-key adv --recv-keys ...
Setup for Local ERPNext project :
1) Create another folder for project for ex gilton inside workspace and
on terminal go to the path till gilton
on terminal go to the path till gilton
E.g. mkdir gilton && cd ~/workspace/gilton
2) Create virtual environment -
virtualenv .
3) Activate the virtual environment :
source ./bin/activate
4) Install Bench :
b) pip install -e bench-repo
5) Create a new bench from master -
from git(master branch) -
or
from local of another system-
bench init --frappe-path user@192.168.5.24:/home/user/workspace/v8/frappe-bench/apps/frappe frappe-bench
or
from local of self system -
bench init --frappe-path //home/indictrans/radhika_workspace/erp8/frappe-bench/apps/frappe frappe-bench
or
from git cloning -
bench init --frappe-path https://gradhika@bitbucket.org/gradhika/bakery_frappe_updated.git frappe-bench
6) cd frappe-bench
7) Get app ERPNext-
from git(master branch) -
or
from local of another system -
bench get-app --branch master erpnext user@192.168.5.24:/home/user/workspace/v8/frappe-bench/apps/erpnext
or
from local of self system -
bench get-app --branch master erpnext //home/indictrans/radhika_workspace/erp8/frappe-bench/apps/erpnext
or
from git cloning -
bench get-app --branch master erpnext https://gitlab.com/erpnext.git
8) Create New App gilton or take from local
bench new-app gilton
Note : Ex to fill it
App Title (default: Mwserp): Connect Amazon MWS with ERPnext
App Description: Connect Amazon MWS with ERPnext
App Publisher: User
or
from local -
bench get-app gilton user@192.168.5.253:/home/user/workspace/gilton/frappe-bench/apps/gilton
from git cloning -
bench get-app --branch master gilton https://gitlab.com/gilton.git
9) Create new site
bench new-site gilton
10) Install apps
bench --site gilton install-app erpnext
Note : If restoring db then do before installing app. If directly below command run then you get error there is. Then do
bench reinstall
bench --site gilton install-app gilton
11) Start bench-
bench start
or if we need to change the port -
bench serve --port 9090
Note: Please give suggestions if you find any error
Note: Please give suggestions if you find any error
Comments
Post a Comment