我在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'
我在做什么错?
感谢您的帮助, 凯文