How to move a custom app (with site) to production following best practises?

It is not a best practice to edit frappe framework code. Use custom app hooks to override and customise any functionality. You need to fix that first.

I found this video: