How to switch development to production?

You may set up production mode using:

 bench setup production frappe

(frappe is the non-root username. You may change it to frappe-erp, frappe-user or whatever you like).

Make frappe a sudo user.

 sudo usermod -aG sudo frappe

Give frappe a password

 sudo passwd frappe

Use frappe user to activate Erpnext / frapp

 su - frappe

(enter the password of frappe that you gave in passwd frappe)

Note that the home directory has changed to /home/frappe

 cd frappe-bench

run your bench commands in this directory which is now /home/frappe/frappe-bench.

(I see that your home directory is still /home/satish)

Caution: frappe is an overused user name for this purpose. It is recommended that you use another user name - for example: erpsatish. In this case, you use

  bench setup production erpsatish
2 Likes