From f3440ddb3bcca584d214767bbc1d4650f21b3965 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Sat, 4 Aug 2012 20:20:24 +0100 Subject: [PATCH] Deploy script works and outputs direct to stdout. --- deploy.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/deploy.rb b/deploy.rb index 10b1f06..6ca3603 100755 --- a/deploy.rb +++ b/deploy.rb @@ -9,12 +9,10 @@ module CV def CV.deploy if check_dir - puts "Deploying..." Net::SSH.start('vps2.danbee.co.uk', 'danbee') do |ssh| - # capture all stderr and stdout output from a remote process - ssh.exec!("cd ~/cv") - ssh.exec!("git pull origin") - ssh.exec!("stasis") + ssh.exec("cd ~/cv; bundle install") + ssh.exec("cd ~/cv; git pull origin master") + ssh.exec("cd ~/cv; stasis") end else puts "Please run this from the projects directory."