mirror of
https://github.com/danbee/cv
synced 2025-03-04 08:59:12 +00:00
Deploy script works and outputs direct to stdout.
This commit is contained in:
parent
3ecc6c019e
commit
f3440ddb3b
@ -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."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user