重命名 ddev 项目

发布于 2025-01-16 04:30:15 字数 166 浏览 2 评论 0原文

我们是一群从事多个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

过去的过去 2025-01-23 04:30:15

请使用 DDEV 常见问题解答“如何更改项目名称?”

使用此过程:

  1. 导出项目的数据库:ddev export-db --file=/path/to/db.sql.gz
  2. ddev delete。默认情况下,这将生成一个快照,这是一个很好的安全阀。
  3. 重命名项目:ddev config --project-name=
  4. ddev start
  5. 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:

  1. Export the database of the project: ddev export-db --file=/path/to/db.sql.gz
  2. ddev delete <project>. By default this will make a snapshot, which is a nice safety valve.
  3. Rename the project: ddev config --project-name=<new_name>
  4. ddev start
  5. ddev import-db --file=/path/to/db.sql.gz
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文