无法获得自定义任务以在capistrano中运行

时间:2019-02-20 19:48:33

标签: ruby-on-rails capistrano

我在lib / tasks中有一个rake文件:

namespace :deploy_tasks do
    desc 'run after deploy tasks'
    task run: :environment do
        puts "running custom tasks"
        DeployTask.run
    end
end

如果我自己运行命令

rake deploy_tasks:run

效果很好。现在在我的封顶文件中

after :deploy, "deploy:run_deploy_tasks" 

但我知道

Don't know how to build task 'deploy_tasks:run' 

我在做什么错?

感谢您的帮助, 凯文

0 个答案:

没有答案