为什么没有“heroku软件包更新”? [英] Why there is no "heroku bundle update"?

查看:86
本文介绍了为什么没有“heroku软件包更新”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不明白为什么我必须更新我的gem localy并将其推送到heroku,以获取它们的更新版本?

为什么没有 heroku bundle update command?

解决方案

bundle更新或运行任何等效的CLI命令,我相信Bundler会更新您的Gemfile.lock文件 - 它保留了所有gem依赖关系的树 - 并且锁定文件由您的git存储库(< a href =https://stackoverflow.com/questions/4151495/should-gemfile-lock-be-included-in-gitignore>在这里查看更多信息)。



如果您能够直接在Heroku上运行该命令,那么您必须再次启动您的存储库,否则您的手上会出现git快速转发问题。



因此,您不需要在本地执行任何更多命令并将其重新推回。


I don't understand why i have to update my gems localy and push it to heroku, to get the updated version of them?

why there is no heroku bundle update command?

解决方案

When you bundle update or run any of the equivalent CLI commands, I believe Bundler updates your Gemfile.lock file - which keeps a tree of all your gem dependencies - and the lock file is tracked by your git repository (see here for more info).

If you were able to run the command directly on Heroku, then you'd have to pull your repository again, otherwise you'd have a git fast-forward issue on your hands.

So really, you're not running any more commands by having to do it locally and push it back up.

这篇关于为什么没有“heroku软件包更新”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆