简体   繁体   English

Capistrano:Cap失败了! 不知道如何建立任务'deploy:setup'

[英]Capistrano: Cap aborted! Don't know how to build task 'deploy:setup'

I am setting up production deployment for my rails app. 我正在为我的Rails应用程序设置生产部署。 But it was unable to build for unknown reason. 但是它无法建立,原因不明。 I have managed to fix it for the whole day without success. 我已经整日修复了它,但没有成功。 where is my problem? 我的问题在哪里? can i fix it? 我可以解决吗? please! 请!

➜  Buyi git:(develop) ✗ cap production deploy:setup --trace      
** Invoke production (first_time)
** Execute production
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke rvm:hook (first_time)
** Invoke passenger:rvm:hook (first_time)
** Invoke passenger:test_which_passenger (first_time)
** Execute passenger:test_which_passenger DEBUG [50f77fca] Running /usr/bin/env which passenger as x@x DEBUG [50f77fca] Command: ( export PATH="~/.rvm/gems/ruby-2.2.1@buyi/bin:$PATH" ; /usr/bin/env which passenger ) DEBUG [50f77fca]    /home/ec2-user/.rvm/gems/ruby-2.2.1@buyi/bin/passenger DEBUG [50f77fca] Finished in 5.666 seconds with exit status 0 (successful).
** Execute passenger:rvm:hook
** Execute rvm:hook
** Invoke rvm:check (first_time)
** Execute rvm:check DEBUG [70b71b8b] Running ~/.rvm/bin/rvm version as x@x DEBUG [70b71b8b] Command: ( export PATH="~/.rvm/gems/ruby-2.2.1@buyi/bin:$PATH" ; ~/.rvm/bin/rvm version ) DEBUG [70b71b8b]     rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] DEBUG [70b71b8b] Finished in 1.158 seconds with exit status 0 (successful). rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] DEBUG [44456560] Running ~/.rvm/bin/rvm current as x@x DEBUG [44456560] Command: ( export PATH="~/.rvm/gems/ruby-2.2.1@buyi/bin:$PATH" ; ~/.rvm/bin/rvm current ) DEBUG [44456560]  ruby-2.2.1 DEBUG [44456560] Finished in 1.118 seconds with exit status 0 (successful). ruby-2.2.1 DEBUG [e03a5cf7] Running ~/.rvm/bin/rvm ruby-2.2.1@buyi do ruby --version as x@x DEBUG [e03a5cf7] Command: ( export PATH="~/.rvm/gems/ruby-2.2.1@buyi/bin:$PATH" ; ~/.rvm/bin/rvm ruby-2.2.1@buyi do ruby --version ) DEBUG [e03a5cf7]    ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] DEBUG [e03a5cf7] Finished in 1.084 seconds with exit status 0 (successful). ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
** Invoke bundler:map_bins (first_time)
** Invoke passenger:bundler:hook (first_time)
** Execute passenger:bundler:hook
** Execute bundler:map_bins
** Invoke deploy:set_rails_env (first_time)
** Execute deploy:set_rails_env
** Invoke deploy:set_linked_dirs (first_time)
** Execute deploy:set_linked_dirs
** Invoke deploy:set_rails_env  

cap aborted! Don't know how to build task 'deploy:setup'     

In my Capfile, I have these: 在我的Capfile中,我有以下这些:

require 'capistrano/setup'
require 'capistrano/deploy'
require 'capistrano/rvm'
require 'capistrano/bundler'
require 'capistrano/rails/assets'
require 'capistrano/rails/migrations'
require 'capistrano/passenger'

Looks as though you're relying on the standard setup task to be there. 好像您要依靠标准安装任务一样。 You'll need to add it your cap file: 您需要将其添加到您的文件中:

# Capfile
require 'capistrano/setup'

and make sure to run bundle exec cap production deploy:setup . 并确保运行bundle exec cap production deploy:setup

Source: http://capistranorb.com/documentation/getting-started/flow/ 资料来源: http : //capistranorb.com/documentation/getting-started/flow/

Your are using cap 3, right? 您正在使用第3章,对吧?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 卡皮斯特拉诺:帽子流产了! 不知道如何构建任务&#39;deploy:setup_config&#39; - Capistrano: cap aborted! Don't know how to build task 'deploy:setup_config' 不知道如何在使用 Rails 为 capistrano 3.8.0 运行“cap production deploy”时构建任务“start” - Don't know how to build task 'start' when run 'cap production deploy' for capistrano 3.8.0 with Rails Rails 5部署到VPS-capistrano错误“不知道如何构建任务&#39;deploy:setup&#39;” - Rails 5 deploy to VPS - capistrano error “Don't know how to build task 'deploy:setup' ” 卡波斯特拉诺:上限中止! 不知道如何构建任务“开始”(使用 `cap --tasks` 查看可用任务列表) - Capostrano: cap aborted! Don't know how to build task 'start' (See the list of available tasks with `cap --tasks`) Capistrano:不知道如何构建任务“ deploy:restart” - Capistrano : Don't know how to build task 'deploy:restart' 耙子流产了! 不知道如何建立任务“部署” - Rake aborted! Don't know how to build task 'deploy' 耙子中止! 不知道如何构建任务 &#39;snorby:setup&#39; - rake aborted! Don't know how to build task 'snorby:setup' 当我在 Capistrano 任务中将我的应用程序部署到 vps 时,不知道如何构建任务“环境” - Don't know how to build task 'environment' When i deploy my app to vps in Capistrano task Capistrano:不知道如何构建任务 &#39;deploy:new_release_path&#39; - Capistrano: Don't know how to build task 'deploy:new_release_path' capistrano3:不知道如何构建任务&#39;deploy:create_db&#39; - capistrano3: Don't know how to build task 'deploy:create_db'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM