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."