在我的deploy.rb我有以下任务:
namespace :deploy do task :start, :roles => :app do run "cd #{current_path} && bundle exec thin start -C config/thin.yml" end task :stop, :roles => :app do run "cd #{current_path} && bundle exec thin stop -C config/thin.yml" end task :restart, :roles => :app do run "cd #{current_path} && bundle exec thin restart -C config/thin.yml" end end
当我运行cap deploy:restart通过cap deploy cap deploy:restart最近的代码更改不拾起。 但是,如果我随后运行cap deploy:stop和cap cap deploy:start所有更改都将被提取。
为什么不能识别新的当前目录?