Install instructions to frappe/erpnext 15 on ubuntu 22.04
sudo timedatectl set-timezone "America/Guatemala"
sudo apt-get update -y
sudo apt-get upgrade -y
sudo adduser frappe
sudo usermod -aG sudo frappe
su frappe
cd /home/frappe/
sudo apt-get install git -y
sudo apt-get install python3-dev python3.10-dev python3-setuptools python3-pip python3-distutils -y
sudo apt-get install python3.10-venv -y
sudo apt-get install software-properties-common -y
sudo apt install mariadb-server mariadb-client -y
mariadb --version
sudo apt-get install redis-server -y
sudo apt-get install xvfb libfontconfig wkhtmltopdf -y
sudo apt-get install libmysqlclient-dev -y
sudo service mysql restart
sudo mysql_secure_installation
sudo nano /etc/mysql/mariadb.conf.d/50-server.cnf
#mariadb.conf.d
sudo nano /etc/mysql/my.cnf
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
[mysql]
default-character-set = utf8mb4
sudo service mysql restart
sudo apt install curl -y
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
source ~/.profile
nvm install 16.15.0
sudo apt-get install npm -y
sudo npm install -g yarn -y
sudo pip3 install frappe-bench
bench init --frappe-branch version-14 frappe-bench
npx browserslist@latest --update-db
npm install -g [email protected]
cd frappe-bench/
chmod -R o+rx /home/frappe/
bench new-site misitio.gt
bench get-app --branch version-14 erpnext
bench get-app payments
bench get-app hrms
bench get-app ecommerce_integrations --branch main
bench --site misitio.gt install-app erpnext
bench --site misitio.gt install-app payments
bench --site misitio.gt install-app hrms
bench --site misitio.gt install-app ecommerce_integrations
bench --site misitio.gt enable-scheduler
bench --site misitio.gt set-maintenance-mode off
sudo bench setup production frappe
bench setup nginx
sudo supervisorctl restart all
sudo bench setup production frappe
sudo apt-get remove wkhtmltopdf
sudo apt-get install -y xfonts-75dpi
sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb
wkhtmltopdf -V
ufw allow 22,25,143,80,443,3306,3022,8000/tcp
ufw enable
bench config dns_multitenant on
bench new-site misitio2.gt
bench setup nginx
sudo service nginx reload
bench --site misitio2.gt install-app erpnext
bench --site misitio2.gt install-app payments
bench --site misitio2.gt install-app hrms
bench --site misitio2.gt install-app ecommerce_integrations
bench --site misitio.gt set-config --global developer_mode 1
bench drop-site misitio.gt --no-backup
bench --site misite.local uninstall-app hrms --no-backup
bench --site misite.local remove-from-installed-apps frappedesk
bench get-app --branch production-v14 https://github.com/sihaysistema/factura_electronica_gt.git --resolve-deps
bench --site misitio.gt install-app factura_electronica
bench setup requirements
bench update --patch
bench build --app factura_electronica
bench --site misitio.local migrate
bench restart && bench clear-cache
bench build --app factura_electronica --production
bench set-config developer_mode 1
bench clear-cache
bench setup requirements --dev
bench set-maintenance-mode off
bench new-app myapp_name
bench --site {site} uninstall-app {app} --force --no-backup
or
bench --site misitio.local uninstall-app ecommerce_integrations --force
bench remove-app myapp_name
bench --site all uninstall-app tareas --force
Connect app (local) to a remote repository (github) | Command in local app to connect like "/apps/myapp_name$"
git remote add origin https://github.com/usergit/myapp_name.git
git branch -M master
git push -u origin master
git checkout -b develop
git push --set-upstream origin develop
git status
git add .
git commit -m "some files change descriptions"
git push origin develop
chmod -R o+rx /home/frappe
sudo nano /etc/supervisor/supervisord.conf
chmod=0760
chown=frappe:frappe
sudo -A systemctl restart supervisor
bench --site site_name reinstall
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
source ~/.bashrc
nvm list-remote
nvm install v20.9.0
nvm alias default v20.9.0
node -v
bench get-app hrms --branch version-15
bench --site [sitename] install-app hrms
cd apps/hrms git fetch upstream version-15:version-15 git checkout version-15 cd ../.. bench --site [sitename] migrate or bench update