Migration Process

How can I migrate UI changes, new doctypes, and custom scripts from the test server to the production server? During this process, how can I ensure that the data on my production server is not lost? I want to migrate from test to production without losing any existing data.

Create a custom app and add the doctype there and for data u can use fixtures