Try ERPNext Buy Support Partners Foundation

How to deploy from DEVELOPMENT to PRODUCTION

I know this has been asked before. But, has anything changed since then?
The main recommendation was, as I recall to create a custom app and deploy it using git. So if I understand all customizations should be exported to a custom app and that app should be used for deployment.

Can someone provide links on how to do this, as I don’t know what to search for?

1 Like

Hi
you should upload this app to Repo by git
and in its Hooks file in the end add this code

fixtures = [
    # export all records from the Custom Field table
    "Custom Field"
]

after you finish run this command

bench --site sitename export-fixtures

and push to your repo all your customisations
this pull it to your project by

your project name$ bench get-app your link to your app

run this code in your project path

and this

your project name$ bench migrate

and this steps to make your project production version

1. sudo bench setup sudoers <user_name>
2. sudo bench setup production <user_name>
3. bench setup nginx