Ruby equivalent of virtualenv?

后端 未结 8 1334
粉色の甜心
粉色の甜心 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 05:53

    I'll mention the way I do this with Bundler (which I use with RVM - RVM to manage the rubies and a default set of global gems, Bundler to handle project specific gems)

    bundler install --binstubs --path vendor
    

    Running this command in the root of a project will install the gems listed from your Gemfile, put the libs in ./vendor, and any executables in ./bin and all requires (if you use bundle console or the Bundler requires) will reference these exes and libs.

    Works for me.

提交回复
热议问题