This is actually fully untested and from memory only. |
pyenv install 2.7.15
pyenv install 3.7.4
pyenv global 3.7.4 2.7.15
nvm install --lts
nvm ls # to see all versions installed, will be 12.something
nvm alias default 12.something to set your default
npm install -g yarn
yay -S mariadb
sudo systemctl enable mysqld
sudo systemctl start mysqld
sudo nano /etc/mysql/conf.d/frappe.cnf
[mysqld]
innodb-file-format=barracuda
innodb-file-per-table=1
innodb-large-prefix=1
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
[mysql]
default-character-set = utf8mb4
sudo systemctl restart mysqld
yay -S redis
sudo systemctl enable redis
sudo systemctl start redis
pip install frappe-bench
# Install frappe into ~/Code/erpnext
cd ~/Code
bench init erpnext --no-backups
# Change into the new directoy
cd ~/Code/erpnext
# Start erpnext which will fire up 3 additional redis processes required for the next steps
# This command will STAY RUNNING, its the bench frappe server. If it stops and dumps you back to the command prompt something is broken
# Leave this bench server running in this terminal.
bench start
# Open ANOTHER terminal (leaving bench start still running)
# Create a new frappe "site" called mysite (name it whatever you want, mysite is an example)
# Ensure you are in ~/Code/erpnext still
cd ~/Code/erpnext
bench new-site mysite --db-name erpnext
# Restart the bench server
# Back in the other terminal that is running bench start, press CTRL+C to kill it and simply run bench start again
# Back in the second terminal (while bench start is still running in the other one)...still in ~/Code/erpnext
# Get the ERPNext app
bench get-app erpnext
# Restart the bench server
# Back in the other terminal that is running bench start, press CTRL+C to kill it and simply run bench start again
# Back in the second terminal (while bench start is still running in the other one)...still in ~/Code/erpnext
# Add this new erpnext "app" to your new site
bench --site mysite install-app erpnext
# Restart the bench server
# Back in the other terminal that is running bench start, press CTRL+C to kill it and simply run bench start again
# Now you should be done. The "bench start" server should still be running successfully
# Simply visit http://localhost:8000 in your browser and you should see the ERPNext welcom/setup screens.