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

时间:2017-07-19 03:14:46

标签: ruby-on-rails capistrano capistrano3

当我运行cap env deploy时,没有任何步骤运行。我该怎么办才能开始调试问题所在。我不确定它是否相关但time bin/cap -T需要real 1m24.202s才能运行。

ruby -v: ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]
gem -v: 2.5.1

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

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

real    0m42.940s

这是cap deploy

的输出
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

1 个答案:

答案 0 :(得分:1)

您需要将舞台添加到命令

生产

cap production deploy

<强>更新

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