mirror of
https://github.com/danbee/cv
synced 2025-03-04 08:59:12 +00:00
Remove old deploy script.
This commit is contained in:
parent
e6477a7bc8
commit
b72e0a21f8
23
deploy.rb
23
deploy.rb
@ -1,23 +0,0 @@
|
|||||||
#!/usr/bin/env ruby
|
|
||||||
|
|
||||||
require 'net/ssh'
|
|
||||||
|
|
||||||
module CV
|
|
||||||
def CV.check_dir
|
|
||||||
return File.exists? "danbarbercv"
|
|
||||||
end
|
|
||||||
|
|
||||||
def CV.deploy
|
|
||||||
if check_dir
|
|
||||||
Net::SSH.start('vps2.danbee.co.uk', 'danbee') do |ssh|
|
|
||||||
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."
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
CV.deploy
|
|
||||||
Loading…
Reference in New Issue
Block a user