我们可以重命名 Rails 文件夹而不产生任何副作用吗?

发布于 2024-07-19 19:34:15 字数 278 浏览 5 评论 0原文

当开始Ruby on Rails编程时,我会

首先使用rails
Rails 其次

并在这些“第一个”和“第二个”项目中尝试一些东西

,但随着它们变得更加成熟,我想将它们签入 SVN 并进一步开发,所以我可以将它们重命名为

“superapp”

“web30”

并签入 SVN并进一步发展而没有任何副作用? 我不想重命名它们并生成更多控制器和模型并进行迁移,有一天发现该项目搞砸了并在生产/部署时引起了问题。

when starting Ruby on Rails programming, I will use

rails first
rails second

and try out things in these "first" and "second" projects

but as they get more mature i want to check them into SVN and develop further, so can i rename them into

"superapp"

or

"web30"

and check into SVN and develop further without any side effects? I don't want to rename them and generate more controllers and models and do migration and one day found out that the project is messed up and caused problem when going to production / deployment.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(3

街道布景 2024-07-26 19:34:15

不是问题。 Rails 不关心它存储的目录的名称(或其路径)。

Not a problem. Rails doesn't care about the name of the directory it's stored in (or the path to it).

鱼窥荷 2024-07-26 19:34:15

我在进行此类重命名时没有遇到任何问题。

事实上我刚刚创建了一个项目并验证了重命名后,RAILS_ROOT变量会自动更新。 您可以使用脚本/控制台来验证这一点。

I have not encountered any problems while doing such renames.

In fact I have just created a project and verified that after the rename, the RAILS_ROOT variable is automatically updated. You can verify this using script/console.

花心好男孩 2024-07-26 19:34:15

如果必须合并,请先合并,然后再提交。

Rails 不介意项目名称,所以不用担心。 如果您需要重命名 svn 上已有的内容,请不要忘记使用 重命名功能。

If you have to merge, merge them first and then commit.

Rails don't mind about project names so don't worry about that. If you need to rename something already on a svn, don't forget to use the rename function.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文