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
|
def CV.deploy
|
||||||
if check_dir
|
if check_dir
|
||||||
puts "Deploying..."
|
|
||||||
Net::SSH.start('vps2.danbee.co.uk', 'danbee') do |ssh|
|
Net::SSH.start('vps2.danbee.co.uk', 'danbee') do |ssh|
|
||||||
# capture all stderr and stdout output from a remote process
|
ssh.exec("cd ~/cv; bundle install")
|
||||||
ssh.exec!("cd ~/cv")
|
ssh.exec("cd ~/cv; git pull origin master")
|
||||||
ssh.exec!("git pull origin")
|
ssh.exec("cd ~/cv; stasis")
|
||||||
ssh.exec!("stasis")
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
puts "Please run this from the projects directory."
|
puts "Please run this from the projects directory."
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user