How to update my Custom App only?

Hello,

I have deployed my Custom App on a remote server running ERPNext 14.x.

After deployment I have made other changes in the app and would like to update my custom app on remote server only.

Currently what I am doing is calling bench update and this is first backing up the sites and then updating all the app from Frappe to ERPNext and all dependent.

I read somewhere that latest updates in Frappe are breaking changes that will break Indian Compliance. And my custom app depends on this and HRMS.

So instead of updating everything I just want to update my custom app.

How can I do that without breaking currently smoothly running instance of ERPNext 14.x.

TIA

Yogi Yang

I would try
git pull upstream master
in my app folder.

1 Like

Hello,

After Git Pull should I call bench migrate and bench restart or these commands are not necessary?

TIA

Yogi Yang

If you change anything in any doctype or customized any form you need to migrate. Other than that bench restart is enough.

1 Like

If you changed js or css in the app, you should also run bench build

2 Likes

Create a file named excluded_apps.txt inside sites/ folder.

Add apps to exclude within this file:

frappe
erpnext

Then when you issue bench update, you will see the git pull skipped for those apps

8 Likes

Hello,

Thanks for the solution.

That is exactly what I was looking for!

It is more elegant also as I have to just issue one single command!

TIA

Yogi Yang