RVM, Capistrano and bundler path issues

后端 未结 3 729
清歌不尽
清歌不尽 2021-02-06 07:29

i seem to have a discrepancy between production\'s gem path when I installed manually versus by bundler+capistrano.

After rvm installing ruby 1.9.2 and creating a gems

相关标签:
3条回答
  • 2021-02-06 07:32

    Annoyingly, bundler folks have no intention on working well with RVM and want bundler to manage ruby versions so the workaround so far for me is to simply symbollically link for ruby and 1.9.1 in my GEM_PATH directory pointing to "."

    0 讨论(0)
  • 2021-02-06 07:32

    I've encountered similar problems with capistrano/bundler/rvm setups.

    At least in my case, if I run

    bundle exec <command>
    

    from the capistrano created installation:

    /u/apps/<app-name>/current
    

    I pick up my GEMDIR

    bundle exec env | grep GEM_HOME
    GEM_HOME=/u/apps/app-name/shared/bundle/ruby/1.9.1
    
    0 讨论(0)
  • 2021-02-06 07:52

    After you created your gemset, did you explicitly "rvm use 1.9.2@myapp" before installing bundler?

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