1
0
mirror of https://github.com/danbee/cv synced 2025-03-04 08:59:12 +00:00

Added therubyracer to gems. Deploy script should now work.

This commit is contained in:
Dan Barber 2012-08-04 15:59:10 +01:00
parent 3e01c910e5
commit 3ecc6c019e
4 changed files with 22 additions and 1 deletions

View File

@ -1,9 +1,12 @@
source "http://rubygems.org"
# gem "rails"
gem "stasis"
gem "therubyracer"
gem "hpricot"
gem "haml"
gem "sass"
gem "redcarpet"
gem "coffee-script"
# for deployment
gem "net-ssh"

View File

@ -10,7 +10,9 @@ GEM
multi_json (~> 1.0)
haml (3.1.6)
hpricot (0.8.6)
libv8 (3.3.10.4)
multi_json (1.3.6)
net-ssh (2.5.2)
redcarpet (2.1.1)
redis (2.2.2)
sass (3.1.20)
@ -21,6 +23,8 @@ GEM
slop (~> 2.1.0)
tilt (~> 1.3.3)
yajl-ruby (~> 1.0.0)
therubyracer (0.10.1)
libv8 (~> 3.3.10)
tilt (1.3.3)
yajl-ruby (1.0.0)
@ -31,6 +35,8 @@ DEPENDENCIES
coffee-script
haml
hpricot
net-ssh
redcarpet
sass
stasis
therubyracer

View File

@ -3,5 +3,7 @@ ignore /\/stylesheets\/_.*/
ignore /Gemfile.*/
ignore /\/\..+/
ignore /README\.md/
ignore /danbarbercv/
ignore /deploy.rb/
layout "layouts/main.html.haml"

View File

@ -1,5 +1,7 @@
#!/usr/bin/env ruby
require 'net/ssh'
module CV
def CV.check_dir
return File.exists? "danbarbercv"
@ -8,6 +10,14 @@ 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")
end
else
puts "Please run this from the projects directory."
end
end
end