Deploying Custom App does not deploy all customization. Why?

Hello,

I have built a custom app in ERPNext 13 which has 4 DocTypes and it is working properly locally.

I just deployed it to a remote server.

The app got installed and it working but I observed that the customization that I have done in Client Script did not get deployed.

Any ideas what mistake I am making here?

Why is the Client script associated with a DocType of my Custom App does not get deployed?

What is the best way to solve this problem?

TIA

Yogi Yang

You should have client scripts in your app. Check how to export fixtures.

Hello,

I am confused here because the documentation only talks about exporting records from a DocType.

https://frappeframework.com/docs/v13/user/en/python-api/hooks#fixtures

I reached here from this section of the documentation.
https://frappeframework.com/docs/v13/user/en/bench/resources/bench-commands-cheatsheet#development

TIA

Yogi Yang

If all your doctypes are custom ones and included in the custom app then just do bench build and bench migrate.

If your customizations are for standard doctypes and written in client script, then you got to use fixtures in the hooks file to export them to the app.

fixtures = [
	{
		"doctype": "Client Script",
		"filters" : [
                "name",
                "in",
                [
					'name_of_client_Scipt'
                ]
             ]
     }
 ]
1 Like