rewrite deploy.rb