我们可以重命名 Rails 文件夹而不产生任何副作用吗?
当开始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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不是问题。 Rails 不关心它存储的目录的名称(或其路径)。
Not a problem. Rails doesn't care about the name of the directory it's stored in (or the path to it).
我在进行此类重命名时没有遇到任何问题。
事实上我刚刚创建了一个项目并验证了重命名后,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.
如果必须合并,请先合并,然后再提交。
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.