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:
parent
3e01c910e5
commit
3ecc6c019e
5
Gemfile
5
Gemfile
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
@ -3,5 +3,7 @@ ignore /\/stylesheets\/_.*/
|
||||
ignore /Gemfile.*/
|
||||
ignore /\/\..+/
|
||||
ignore /README\.md/
|
||||
ignore /danbarbercv/
|
||||
ignore /deploy.rb/
|
||||
|
||||
layout "layouts/main.html.haml"
|
||||
|
||||
10
deploy.rb
10
deploy.rb
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user