How to setup site on production environment?


I’m a newbie to the frappe framework. I have been trying to deploy my ERPNext Setup using docker. The only part I’m a little confused is how is the site setup on production?

Do we have to use the bench new site command in the docker compose file to create the site?

In my setup, i install erpnext along with my custom frappe app (For any customisations on erpnext). If i make any changes in my custom app, which needs a database change. How do i execute those changes on my production environment?

Do i use the bench migrate command to do so?

@revant_one Any help would be appreciated, Thanks!

You would have to rebuild you docker image with the changes for your custom app and redeploy the updated containers.

This may help: