Ruby on rails 卡皮斯特拉诺似乎跳过了所有的任务

Ruby on rails 卡皮斯特拉诺似乎跳过了所有的任务,ruby-on-rails,capistrano,capistrano3,Ruby On Rails,Capistrano,Capistrano3,当我运行cap env deploy时,所有步骤都不会运行。我该怎么做才能开始调试问题所在。我不确定它是否相关,但时间bin/cap-T需要真正的1m24.202s才能运行 即使检查capistranos版本号也需要45秒 # time bin/cap --version Capistrano Version: 3.5.0 (Rake Version: 12.0.0) real 0m42.940s 这是cap部署的输出: 您需要将stage添加到命令中 cap生产部署用于生产 更新 您

当我运行cap env deploy时,所有步骤都不会运行。我该怎么做才能开始调试问题所在。我不确定它是否相关,但时间bin/cap-T需要真正的1m24.202s才能运行

即使检查capistranos版本号也需要45秒

# time bin/cap --version
Capistrano Version: 3.5.0 (Rake Version: 12.0.0)

real    0m42.940s
这是cap部署的输出:


您需要将stage添加到命令中

cap生产部署用于生产

更新


您的部署文档似乎缺少要部署到的角色或服务器。您可以找到。

对不起,我会更新我的问题。我正在运行cap env部署。这就是为什么您看到所有任务的输出。这是正确的。Capistrano没有运行任务的地方。我猜autoqa是您的环境。你也可以发布你的deploy.rb和autoqa.rb文件吗?@Jeremie我已经在这里上传了这两个文件。我没有看到要部署到的任何角色或服务器。。。这是在别的地方吗?你可以看出我对卡皮斯特拉诺不是最熟悉的。我现在正在审阅capistrano的文档。我更新了我的答案,为您指出了正确的方向。
# time bin/cap --version
Capistrano Version: 3.5.0 (Rake Version: 12.0.0)

real    0m42.940s
root@f9befa5efa56:~/lrnz# bin/cap --trace=stdout autoqa deploy
** Invoke autoqa (first_time)
** Execute autoqa
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke bundler:map_bins (first_time)
** 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 rbenv:map_bins (first_time)
** Execute rbenv:map_bins
** Invoke deploy (first_time)
** Execute deploy
** Invoke deploy:starting (first_time)
** Execute deploy:starting
** Invoke deploy:check (first_time)
** Invoke deploy:check_lock (first_time)
** Invoke deploy:check_git (first_time)
** Execute deploy:check_git
** Execute deploy:check_lock
** Execute deploy:check
** Invoke git:check (first_time)
** Invoke git:wrapper (first_time)
** Execute git:wrapper
** Execute git:check
** Invoke deploy:check:directories (first_time)
** Execute deploy:check:directories
** Invoke deploy:secrets (first_time)
** Execute deploy:secrets
** Invoke deploy:check:linked_dirs (first_time)
** Execute deploy:check:linked_dirs
** Invoke deploy:check:make_linked_dirs (first_time)
** Execute deploy:check:make_linked_dirs
** Invoke deploy:check:linked_files (first_time)
** Execute deploy:check:linked_files
** Invoke deploy:set_previous_revision (first_time)
** Execute deploy:set_previous_revision
** Invoke deploy:started (first_time)
** Execute deploy:started
** Invoke deploy:updating (first_time)
** Invoke deploy:new_release_path (first_time)
** Execute deploy:new_release_path
** Invoke slack:deploy:updating (first_time)
** Execute slack:deploy:updating
** Invoke deploy:deploy_info (first_time)
** Execute deploy:deploy_info
00:00 deploy:deploy_info
      >> Deploying master to autoqa
** Execute deploy:updating
** Invoke git:create_release (first_time)
** Invoke git:update (first_time)
** Invoke git:clone (first_time)
** Invoke git:wrapper
** Execute git:clone
** Execute git:update
** Execute git:create_release
** Invoke deploy:set_current_revision (first_time)
** Execute deploy:set_current_revision
** Invoke git:set_current_revision (first_time)
** Execute git:set_current_revision
** Invoke deploy:symlink:shared (first_time)
** Execute deploy:symlink:shared
** Invoke deploy:symlink:linked_files (first_time)
** Execute deploy:symlink:linked_files
** Invoke deploy:symlink:linked_dirs (first_time)
** Execute deploy:symlink:linked_dirs
** Invoke deploy:set_current_branch (first_time)
** Execute deploy:set_current_branch
** Invoke deploy:updated (first_time)
** Invoke bundler:install (first_time)
** Execute bundler:install
** Execute deploy:updated
** Invoke deploy:compile_assets (first_time)
** Invoke deploy:set_rails_env
** Execute deploy:compile_assets
** Invoke deploy:assets:precompile (first_time)
** Execute deploy:assets:precompile
** Invoke deploy:assets:s3upload (first_time)
** Execute deploy:assets:s3upload
** Invoke deploy:assets:backup_manifest (first_time)
** Execute deploy:assets:backup_manifest
** Invoke deploy:cleanup_assets (first_time)
** Invoke deploy:set_rails_env
** Execute deploy:cleanup_assets
** Invoke deploy:normalize_assets (first_time)
** Invoke deploy:set_rails_env
** Execute deploy:normalize_assets
** Invoke deploy:migrate (first_time)
** Invoke deploy:set_rails_env
** Execute deploy:migrate
** Invoke es:check (first_time)
** Execute es:check
** Invoke deploy:publishing (first_time)
** Execute deploy:publishing
** Invoke deploy:symlink:release (first_time)
** Execute deploy:symlink:release
** Invoke deploy:published (first_time)
** Execute deploy:published
** Invoke deploy:finishing (first_time)
** Execute deploy:finishing
** Invoke deploy:cleanup (first_time)
** Execute deploy:cleanup
** Invoke slack:deploy:updated (first_time)
** Execute slack:deploy:updated
** Invoke deploy:finished (first_time)
** Invoke deploy:permissions (first_time)
** Execute deploy:permissions
** Invoke deploy:restart (first_time)
** Invoke deploy:secrets
** Execute deploy:restart
** Execute deploy:finished
** Invoke deploy:log_revision (first_time)
** Execute deploy:log_revision
** Invoke notify:logentries (first_time)
** Execute notify:logentries
** Invoke notify:newrelic (first_time)
** Execute notify:newrelic
** Invoke notify:release_notes (first_time)
** Execute notify:release_notes