gem equivalent of `pip install -r requirements.txt`

蹲街弑〆低调 提交于 2020-01-14 16:38:32

问题


I made similar question for npm here: npm equivalent of `pip install -r requirements.txt`

This is for gem.

What are the gem equivalent of:

pip freeze > requirements.txt
pip install -r requirements.txt

回答1:


There isn't a direct comparison in Ruby, but we have something very similar. Look at the bundler gem for how to write your list of required gems into a Gemfile and automatically generate a Gemfile.lock which contains the current versions installed.



来源:https://stackoverflow.com/questions/11840384/gem-equivalent-of-pip-install-r-requirements-txt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!