'Renaming a ddev project
We are a group of developers that work on multiple ddev projects. Some of these projects have a "." in their name, which by now breaks the PhpStorm integration.
Is there an easy way to rename a project and allow all other developers to tell ddev (after they pulled the new ddev config.yaml), what the previous project name was, so data (like database) could be migrated?
Solution 1:[1]
Please use the instructions in the DDEV FAQ "How can I change the name of a project?"
Use this process:
- Export the database of the project: ddev export-db --file=/path/to/db.sql.gz
- ddev delete . By default this will make a snapshot, which is a nice safety valve.
- Rename the project, ddev config --project-name=<new_name>
- ddev start
- ddev import-db --src=/path/to/db.sql.gz
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | rfay |
