Issue with Applying Patches on AWS Instance in Frappe

Hello,

I’m facing an issue with applying patches in my Frappe app. I have a patches.txt file in my app, and when I pull the app and run migrations locally, the patches are applied successfully. However, when I try to pull the app and run migrations on my AWS instance, the patches are not applied as expected.

Is there something specific that I need to configure or adjust to ensure the patches are applied properly on the server? Any help would be greatly appreciated!

Thank you!

Go to Patches Log doctype and check your patch added or not. Also add some log in your code to see errors in your code like this frappe.log_error(message=frappe.get_traceback(),title="error name"

Create new site and bench migrate the new site will not run old patches.