Please require this file from within a Capistrano recipe (LoadError)

前端 未结 4 1924
小蘑菇
小蘑菇 2020-12-28 12:05

I\'m using Capistrano 2 with Rails 3 project. Recently I rebuilt my gemset form scratch and now I receive error \"Please require this file from within a Capistrano recipe (L

相关标签:
4条回答
  • 2020-12-28 12:57

    The problem is with rvm-capistrano.

    Correct it in gemfile. require: false

     gem  'rvm-capistrano',  require: false
    

    This should help

    0 讨论(0)
  • 2020-12-28 13:03

    In your Gemfile change this.

    gem 'rvm-capistrano', require: false

    This will solve the problem without any headache.

    0 讨论(0)
  • 2020-12-28 13:05

    A better solution I found, instead of removing it, to just move rvm-capistrano before capistrano:

    # Deploy with Capistrano
    gem 'rvm-capistrano'
    gem 'capistrano'
    gem 'capistrano-ext'
    
    0 讨论(0)
  • But, what's strange, I've solved this problem also like that (in my Gemfile, just to comment main capistrano gem):

    # Deploy with Capistrano
    # gem 'capistrano', :group => :development
    gem 'rvm-capistrano', :group => :development
    
    0 讨论(0)
提交回复
热议问题