Ruby equivalent of virtualenv?

后端 未结 8 1303
粉色の甜心
粉色の甜心 2020-12-02 05:21

Is there something similar to the Python utility virtualenv?

Basically it allows you to install Python packages into a sandboxed environment, so easy_install d

相关标签:
8条回答
  • 2020-12-02 06:02

    RVM works closer to how virtualenv works since it lets you sandbox different ruby versions and their gems, etc.

    0 讨论(0)
  • 2020-12-02 06:07

    Neither sandbox, RVM, nor rbenv manage the versions of your app's gem dependencies. The tool for that is bundler.

    • use a Gemfile as your application's dependency declaration
    • use bundle install to install explicit versions of these dependencies into an isolated location
    • use bundle exec to run your application
    0 讨论(0)
提交回复
热议问题