capistrano-node-deploy 1.2.12 → 1.2.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8cb8cb97e6be7da091bbf2021f2fc50c497be5d5
4
- data.tar.gz: 6b2b94f5425d38fe8a689883e6722f19e4327881
3
+ metadata.gz: dbb8682438a0a2a33a6dd878f527118d475e37bb
4
+ data.tar.gz: a8bb7e6cfa23e8ddcd5d2ea19fb0b7110c5d903f
5
5
  SHA512:
6
- metadata.gz: c92a61e69c02aec1c0e090ab56a4f78d1eaf5f17c07a1c62a3da2b648f537502f3eebdfcf11afb133673ee6b19bbfcf948b2bfe5fb5b9cf19dc3f24d9aed29ff
7
- data.tar.gz: e911d4bae063890faadf162836da803925aaeacfad3e1fcf263133cc64987eda378207005a1fde36433eb603fa55e5a8ad1fde59bf4d1f4a9bc42d0327095500
6
+ metadata.gz: d5266f0c4f5543147f0f01b17d72ab5381dfb99b930915b43ec75966179fd9540590ecaaafae447e42788f0bdd76508a0165c68cdd766b66b6ca88d0dc193b33
7
+ data.tar.gz: 8a662a6cbde97c48f2c8cd0ebc1618ee1921ac195d1de72b51c37aa501055cd2e90996461c2b939bba168436a41b049bc45cf540b887d00a379075ad88f6424e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.12
1
+ 1.2.13
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "capistrano-node-deploy"
8
- s.version = "1.2.12"
8
+ s.version = "1.2.13"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["James Smith"]
12
- s.date = "2013-12-05"
12
+ s.date = "2014-01-17"
13
13
  s.description = "Capistrano recipes for deploying node apps"
14
14
  s.email = "james@loopj.com"
15
15
  s.extra_rdoc_files = [
@@ -38,6 +38,7 @@ Capistrano::Configuration.instance(:must_exist).load do |configuration|
38
38
  set :app_environment, "" unless defined? app_environment
39
39
 
40
40
  set :node_binary, "/usr/bin/node" unless defined? node_binary
41
+ set :npm_binary, "/usr/bin/npm" unless defined? npm_binary
41
42
  set :node_env, "production" unless defined? node_env
42
43
  set :node_user, "deploy" unless defined? node_user
43
44
 
@@ -68,8 +69,11 @@ EOD
68
69
  namespace :node do
69
70
  desc "Check required packages and install if packages are not installed"
70
71
  task :install_packages do
71
- run "cp -r #{previous_release}/node_modules #{release_path}" if previous_release
72
- run "cd #{release_path} && npm install --loglevel warn"
72
+ run "mkdir -p #{shared_path}/node_modules"
73
+ run "cp #{release_path}/package.json #{shared_path}"
74
+ run "cp #{release_path}/npm-shrinkwrap.json #{shared_path}" if remote_file_exists?("#{release_path}/npm-shrinkwrap.json")
75
+ run "cd #{shared_path} && #{npm_binary} install --loglevel warn"
76
+ run "ln -s #{shared_path}/node_modules #{release_path}/node_modules"
73
77
  end
74
78
 
75
79
  task :check_upstart_config do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-node-deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.12
4
+ version: 1.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-05 00:00:00.000000000 Z
11
+ date: 2014-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railsless-deploy