Hello ERPNext Community,
Please help me improve my setup and skills with Frappe & ERPNext, below is how I installed my current system.
Is this ok? Is this applicable with AWS or Google Cloud?
//Single Tenancy Install//
$ sudo adduser [frappe]
$ sudo usermod -aG sudo [frappe]
$ su - [frappe] *if needed
$ apt install python3-minimal build-essential python3-setuptools
$ export LC_ALL=C.UTF-8
$ wget https://raw.githubusercontent.com/frappe/bench/develop/install.py
$ python3 install.py --production
/after installation enable production/
$ sudo bench setup production
/Renaming site1.local/
$ bench new-site [domain-name]
$ MySQL Password
$ nano /sites/currentsite.txt
[delete site then save]
$ nano /etc/hosts
[input 127.0.0.1 newsitename]
or
$ bench --site [newsitename] add-to-hosts
/Transfer Data from [oldsitename]/
$ bench --site [newsitename] migrate
/Remove [site1.local folder]/
$ rm sites/site1.local
/NginX Configuration Update by adam26d/
$ bench setup nginx
$ sudo service nginx reload
/Update & Start/
$ bench update
$ bench restart/start
Hooray it worked!
//Multi Tenancy Install//
$ sudo adduser [frappe]
$ sudo usermod -aG sudo [frappe]
$ su - [frappe] *if needed
$ apt install python3-minimal build-essential python3-setuptools
$ export LC_ALL=C.UTF-8
$ wget https://raw.githubusercontent.com/frappe/bench/develop/install.py
$ python3 install.py --production
/after installation/
$ sudo bench setup production
//Multi-Tenancy Configuration//
/Renaming site1.local/
$ bench new-site [domain-name]
$ MySQL Password
$ nano /sites/currentsite.txt
[delete site then save]
or
$ rm sites/currentsite.txt
[removes the .txt file]
$ nano /etc/hosts
[input 127.0.0.1 newsitename/additional]
[input 127.0.0.1 oldsitename/additional]
or
$ bench --site [newsitename] add-to-hosts
for multi-tenancy add away your sites
/*Remove [site1.local folder]
$ rm sites/site1.local
I didn’t remove it for testing stuffs
/NginX Configuration Update/
$ bench setup nginx
$ sudo service nginx reload
after running this system will auto-set ports to
[1st site:8000, 2nd site:8001, …]
/Update & Start/
$ bench update
$ bench restart/start
Yes! It Did work again