重命名 ddev 项目
我们是一群从事多个 ddev 项目的开发人员。其中一些项目有一个“.”。以他们的名字命名,现在破坏了 PhpStorm 集成。
有没有一种简单的方法可以重命名项目并允许所有其他开发人员告诉 ddev(在提取新的 ddev config.yaml 之后)以前的项目名称是什么,以便可以迁移数据(如数据库)?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请使用 DDEV 常见问题解答“如何更改项目名称?”
使用此过程:
ddev export-db --file=/path/to/db.sql.gz
ddev delete
。默认情况下,这将生成一个快照,这是一个很好的安全阀。ddev config --project-name=
ddev start
ddev import-db --file=/path/to/db. sql.gz
Please use the instructions in the DDEV FAQ "How can I change a project's name?"
Use this process:
ddev export-db --file=/path/to/db.sql.gz
ddev delete <project>
. By default this will make a snapshot, which is a nice safety valve.ddev config --project-name=<new_name>
ddev start
ddev import-db --file=/path/to/db.sql.gz