How to Upgrade Your Frappe and ERPNext Environment
Step-by-Step Guide to Upgrading Your Frappe and ERPNext Environment
Upgrading your Frappe and ERPNext setup is crucial to keep your system secure, stable, and equipped with the latest features. Here’s a quick guide to help you through the process:
1. Check Your Current Versions:
- Ensure you’re running the required versions before starting the upgrade.
$ python — version (3.11+)
$ nodejs — version (18+)
2. Upgrade Redis Server:
- Keep your Redis server up to date by running:
$ ./env/bin/pip3 install — upgrade redis
3. System Update:
- Update your system packages to ensure everything is current:
$ sudo apt update
$ sudo apt upgrade
4. Upgrade Frappe Bench:
- In your frappe-bench directory, upgrade Frappe Bench by running:
$ sudo -H pip3 install — upgrade frappe-bench
5. Update Bench:
- Apply the necessary updates to your bench:
$ bench setup requirements
$ bench update
6. Switch Branch and Upgrade:
- Move to the latest branch and upgrade your Frappe and ERPNext instances:
$ bench switch-to-branch version-15 frappe erpnext — upgrade
$ bench migrate — skip-failing
$ bench update
$ bench update — patch
7. Restart Services:
- After upgrading, restart all services to apply changes:
$ bench build
$ sudo supervisorctl restart all
$ sudo service nginx stop
$ sudo service nginx start
Note: You might need to start `supervisorctl` before restarting all services.
By following these steps, you’ll ensure your Frappe and ERPNext environment is running smoothly on the latest versions. Keeping your system updated not only enhances performance but also ensures security and access to new features.
#Frappe #ERPNext #UpgradeGuide #SystemAdmin #DevOps