sudo adduser masoud
sudo usermod -aG sudo masoud
su - masoud
sudo whoami
sudo apt install git python-pip redis-server -y
sudo apt install software-properties-common -y
sudo apt autoremove -y
sudo apt-get update
sudo apt-get install mariadb-server -y
sudo mysql_secure_installation
sudo apt install mariadb-client-10.6
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
service mysql restart
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
source ~/.bashrc
nvm install 18
node -v
npm install -g yarn
sudo apt update
sudo apt install python3-pip -y
pip3 --version
sudo apt install python3.10-venv -y
sudo apt-get install xvfb libfontconfig wkhtmltopdf -y
sudo -H pip3 install frappe-bench
bench --version
cd ~
bench init frappe-bench
cd frappe-bench
bench new-site mydomain.com
bench --site mydomain.com add-to-hosts
add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
bench start
now its accessable on mydomain.com:8000
sudo bench setup production masoud
sudo bench use mydomain.com
sudo bench restart
sudo chmod o+x /home/masoud
sudo bench setup production masoud
sudo bench use mydomain.com
sudo bench restart
bench config dns_multitenant on
sudo apt install certbot -y
sudo -H bench setup lets-encrypt [site-name]
bench backup
bench restore
supervisorctl status