我可以使用捆绑包来升级 Rails 吗?
我已经能够通过编辑 Gemfile 和捆绑更新成功从 3.0.1 升级到 3.0.6...
我喜欢这样一个事实:如果出现问题,我可以恢复到版本 3.0.1
也可以升级仅使用捆绑包到rails 3.1.1,如果某些功能在rails版本中不起作用,则返回到3.0.6?
I have been able to successfully upgraded from 3.0.1 to 3.0.6 by editing the Gemfile and bundle update...
I like the fact that if something goes wrong I can revert back to the version 3.0.1
Is is also possible to upgrade to rails 3.1.1 just using bundle and go back to 3.0.6 if something does not work in the rails version?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Bundler 只需将您的应用程序指向正确的库(当然,还下载所有依赖项!)。
您的应用程序需要适合正确版本的库。 Rails 也是如此。
总而言之,您无法通过捆绑程序从 Rails 3.0.x 升级到 3.1.x,但有一个 Railscast 可以实现此目的:)
Bundler just point your app to the right libraries (and, of course download all dependencies!).
Your app needs to fit the proper version of the libraries. So is it for Rails.
To conclude, you can't upgrade from rails 3.0.x to 3.1.x via bundler but there is a Railscast for this :)