bundle install doesn't work from capistrano

后端 未结 9 1700
再見小時候
再見小時候 2021-02-01 15:14

I want to deploy my simple rails 4.0 application via capistrano 3.0.

I use bundler 1.3.5 so I add capistrano-bundler gem to integ

9条回答
  •  醉话见心
    2021-02-01 15:42

    Just ran into the same issue. What worked for me was this:

    1) Installing the capistrano-rvm gem and adding

    require 'capistrano/rvm'
    

    to the Capfile.

    2) Adding my deployment user to the rvm group on the server:

    # usermod deploy -a -G rvm
    

    3) Creating two directories in my deployment user's home folder: .rvm and .rvm/bin

    4) Adding this line to my deploy.rb file:

    set :default_env, { rvm_bin_path: '~/.rvm/bin' }
    

    Phew! That took a few hours.

提交回复
热议问题