General notes and code for ER Next deployments
-
As root run the following:
sudo su -
Step-1
apt-get update -y && apt-get upgrade -y -
Step-2
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - -
Step-3
apt install -y nodejs mariadb-server redis-server python3-pip nginx python3-testresources -
Step-4
adduser frappeusermod -aG sudo frappe -
Step-5
- Edit:
nano /etc/mysql/my.cnf - Add the following lines:
[mysqld] character-set-client-handshake = FALSE character-set-server = utf8mb4 collation-server = utf8mb4_unicode_ci [mysql] default-character-set = utf8mb4
- Edit:
-
Step-6
systemctl restart mysql -
Step-7
mysql_secure_installation -
Step-8
#Enter current password for root (enter for none): Press your [Enter] key, there is no password set by default #Set root password? [Y/n] Y #New password: #Re-enter new password: #Remove anonymous users? [Y/n] Y #Disallow root login remotely? [Y/n] N #Remove test database and access to it? [Y/n] Y #Reload privilege tables now? [Y/n] Y -
Step-9
mysql -u root -p -
Step-10
MariaDB [(none)]USE mysql;MariaDB [(none)]UPDATE user SET plugin='mysql_native_password' WHERE User='root'; -
Step-11
MariaDB [(none)] FLUSH PRIVILEGES;MariaDB [(none)] EXIT; -
Step-12
sudo npm install -g yarnnode -v && npm -v && python3 -V && pip3 -V && yarn -v -
Step-13
pip3 install frappe-bench -
Step-14
systemctl restart mariadb -
Step-15
su frappe cd sudo pip3 install frappe-bench -
Step-16
sudo -H pip3 install frappe-benchbench --version -
Step-17
bench init --frappe-branch version-13-beta frappe-bench -
Step-18
cd frappe-bench -
Step-19
bench new-site <yourdomain.com> -
Step-20
bench get-app --branch version-13-beta erpnext -
Step-21
bench new-site <yourdomain.com> -
Step-22
bench --site <yourdomain.com> install-app erpnext