erpnext-migration.md 2.14 KB
Newer Older
1 2 3 4 5 6 7
---
tags: ["setting up", "migration"]
---
# Migrate from ERPNext
<TagLinks />

- This migration guide has been tested for ERPNext v11.x.x and v12.x.x
8
- It is therefore recommended that you upgrade your ERPNext instance to v11.x.x or v12.x.x before following this guide
9 10


11
## Pre-requisites
12

13
Your __bench__ environment needs to run on Python 3 (minimum Python 3.6).
14 15 16 17 18 19 20 21 22 23

If that is not the case, run the following command from your bench folder (`home/{user}/{your_bench}):

`bench migrate-env python3`

:::warning
dokos is not compatible with Python 2.7
:::


24
## Switch to dokos
25

26
### Change the default repository URL and update __bench__
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48

- In your user's local folder, go to your __bench application__ folder  

```
cd /home/{user}/.bench
```

or

```
cd /home/{user}/bench-repo
```

Usually your user will named be `frappe`, but it can be any user you have created when installing Frappe/ERPNext  

- Change the remote URL and update the application:

```
git remote set-url origin https://gitlab.com/dokos/docli.git
git pull origin master
```

49
### Change the default repository URL for each application
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69

- From your bench folder - usually `/home/frappe/frappe-bench` - run the following commands  

```
bench remote-reset-url dodock
bench remote-reset-url dokos
```


- Then switch to branch __master__ to setup a production environment

```
bench switch-to-master
```

:::tip
The applications Frappe and ERPNext are not yet renamed to dodock and dokos in __bench__.
Therefore, except for resetting the remote url and installing an application, you still need to call each application with their initial names.
:::

70
### Check that the application is ready to be upgraded
71 72 73 74 75 76 77 78 79 80 81 82 83 84

- From your bench folder - usually `/home/frappe/frappe-bench` - run the following command

```
bench remote-urls
```

The output should contain:

```
frappe   https://gitlab.com/dokos/dodock.git
erpnext  https://gitlab.com/dokos/dokos.git
```

85
### Upgrade your application
86 87 88 89 90 91 92 93

- From your bench folder - usually `/home/frappe/frappe-bench` - run the following command

```
bench update
```

If you encounter any issue while upgrading, please open a new issue in the [dokos issue tracker](https://gitlab.com/dokos/dokos/issues)