capistrano 3.3.5でbundle exec capとしても、
(Backtrace restricted to imported tasks)
cap aborted!
Don't know how to build task ':check'
/home/hogehoge/capistrano/Capfile:7:in `<top (required)>'
Tasks: TOP => deploy:check
(See full trace by running task with --trace)
The deploy has failed with an error: Don't know how to build task ':check'
となり、実行できません。Capfileには、
equire 'capistrano/setup'
require 'capistrano/deploy'
Loads custom tasks from `lib/capistrano/tasks' if you have any defined.
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
Rake::Task[:deploy].invoke
invoke :deploy
とかいてあります。
○config/deploy.rb
desc 'my first capistrano task' # 無くてok
task :first_task do
run_locally do
# executeでシェルコマンド実行
execute "echo hello wolrd"
end
end
以上です。お詳しい方ご教授願います。
あなたの回答
tips
プレビュー