Home: Table of Contents Previous: 2.2 Getting Help Next: 3.1.3 Wonderful World of git

3.0 ERPNext Installation, Upgrades and Backups

3.1 Frappe Bench

Frappe bench is more than a program written in python. It is a workhorse that an administrator uses to manage a large amount of low level tasks for administrating ERPNext. Frappe bench is the first thing installed besides the base dependencies and is the first tool an administrator will go to when doing work with an ERPNext installation outside of the user interface.

ERPNext should be installed in a user directory on the Linux server and will run as that user. During installation this user should have sudoer rights, however after installation and in runtime in production environments this user should be unprivileged and should not have sudoer rights. The user must not be root either.

Best practice is to logon to the server with a regular user that has sudoer rights. Don’t logon as root. Use the sudo command to do any privileged work on the server. When working with bench, logon with the regular user and su to the erpnext user like this:

sudo su - erpnext
cd [bench name]/

NOTE: Using the dash ` - ` in the command, tells su that you want a login shell. This simulates the administrator logging into the server as that user and loads a full environment for you.

 

3.1.1 Frappe Bench Operating Environment

Once you have logged on to the server and become the erpnext user, you are ready to get to work with bench. During installation, bench will create the following directory structure:

 

3.1.2 Frappe Bench Commands

Administrators need to be comfortable with the frappe bench command structure.

There is a cheat sheet available that is a good start.

Home: Table of Contents Previous: 2.2 Getting Help Next: 3.1.3 Wonderful World of git