lib/alpha_omega/deploy.rb in alpha_omega-1.1.7 vs lib/alpha_omega/deploy.rb in alpha_omega-1.1.9

- old
+ new

@@ -647,10 +647,12 @@ end after "deploy:build", "assets:build" on :exit do - logger.important "uploading deploy logs: #{log_path}/#{application}-#{ENV["AO_USER"]}.log-#{Time.now.strftime('%Y%m%d-%H%M')}" - put full_log, "#{log_path}/#{application}-#{ENV["AO_USER"]}.log-#{Time.now.strftime('%Y%m%d-%H%M')}" + unless ENV['LOCAL_ONLY'] && !ENV['LOCAL_ONLY'].empty? + logger.important "uploading deploy logs: #{log_path}/#{application}-#{ENV["AO_USER"]}.log-#{Time.now.strftime('%Y%m%d-%H%M')}" + put full_log, "#{log_path}/#{application}-#{ENV["AO_USER"]}.log-#{Time.now.strftime('%Y%m%d-%H%M')}" + end end end # Capistrano::Configuratioy