Force bundler to install gems in user’s home directory

后端 未结 1 1292
天涯浪人
天涯浪人 2021-02-05 06:42

Last time I’m trying to learn how to do web development with Ruby on Rails and I use my Arch GNU/Linux machine for it. The policy of Arch requires gems to be installed in the us

相关标签:
1条回答
  • 2021-02-05 07:22

    You can set an environment variables $BUNDLE_PATH or $GEM_HOME. Bundler will use those and install your gems there. If you specify --path my_path, Bundler will remember this value for future installations.

    […] but it downloads and installs all of the Rails gems one more time which is obviously what I don’t want to do.

    If you want to use cached versions of your gems use --local.

    0 讨论(0)
提交回复
热议问题