/usr/bin/env ruby no such file or directory: Using capistrano 3, capistrano/rbenv, capistrano/bundler and capistrano/rails (using rails 4)

后端 未结 9 1856
别那么骄傲
别那么骄傲 2021-02-02 08:45

I\'m using capistrano, capistrano/rbenv, capistrano/bundler and capistrano/rails. I get this error in the step where capistrano compiles the assets:

DEBUG [49a50         


        
9条回答
  •  温柔的废话
    2021-02-02 09:50

    Ok, fixed it.

    I added this:

    set :default_env, { path: "~/.rbenv/shims:~/.rbenv/bin:$PATH" }
    

    to my deploy.rb.

    I'm not sure is the best solution, but it worked.

提交回复
热议问题