NoMethodError: undefined method `on' for main:Object

后端 未结 2 1797
甜味超标
甜味超标 2021-02-13 05:53

when I try to bundle exec cap production deploy --trace I get an error message:

deploy@h2540559:/www/apps/foodsoft$ bundle exec cap production deplo         


        
相关标签:
2条回答
  • I have the same error.

    My capistrano version is 3.1.0, rails version is 4.1.4. But my colleague don't have that problem. I try to change my ruby version, rvm version as same as my colleague' config. It still not work. So I try to gem list all these related gems. I found my sshkit is higher than his.

    So I downgrade my sshkit to 1.7.1.

    Then it works.

    0 讨论(0)
  • 2021-02-13 06:20

    I had the same error just now after running a bundle update, no major versions were updated, except for Rake to 11. An upgrade from capistrano 3.2.1 to 3.4.0 fixed it for me!

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