capistrano-node-deploy 1.2.13 → 1.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dbb8682438a0a2a33a6dd878f527118d475e37bb
4
- data.tar.gz: a8bb7e6cfa23e8ddcd5d2ea19fb0b7110c5d903f
3
+ metadata.gz: 21c76116a0881d8749ef8d4fc0c7c94801ab8857
4
+ data.tar.gz: b89ec6c906ac00cce13b735ce5eff7195f42d35d
5
5
  SHA512:
6
- metadata.gz: d5266f0c4f5543147f0f01b17d72ab5381dfb99b930915b43ec75966179fd9540590ecaaafae447e42788f0bdd76508a0165c68cdd766b66b6ca88d0dc193b33
7
- data.tar.gz: 8a662a6cbde97c48f2c8cd0ebc1618ee1921ac195d1de72b51c37aa501055cd2e90996461c2b939bba168436a41b049bc45cf540b887d00a379075ad88f6424e
6
+ metadata.gz: 47cf34c898aa0b5e2aa9d310857bb33c08680ccf8d7534f598717cf8555e6d414eef4050d7d81a9b851230b2a356143170ef04288c5161d513080b70319d98ec
7
+ data.tar.gz: b0849ebdddfbd6fafb220f67d179ec69416247cae6d99faebe9e1c25e0f8f21a511316ec1b75ad752c94815155f3c45318d05c179ad37c96b8fb6b1667d57ad5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.13
1
+ 1.2.14
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
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 = "2014-01-17"
12
+ s.date = "2014-03-11"
13
13
  s.description = "Capistrano recipes for deploying node apps"
14
14
  s.email = "james@loopj.com"
15
15
  s.extra_rdoc_files = [
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
32
32
  s.homepage = "http://github.com/loopj/capistrano-node-deploy"
33
33
  s.licenses = ["MIT"]
34
34
  s.require_paths = ["lib"]
35
- s.rubygems_version = "2.0.14"
35
+ s.rubygems_version = "2.0.3"
36
36
  s.summary = "Capistrano recipes for deploying node apps"
37
37
 
38
38
  if s.respond_to? :specification_version then
@@ -38,9 +38,9 @@ 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
42
41
  set :node_env, "production" unless defined? node_env
43
42
  set :node_user, "deploy" unless defined? node_user
43
+ set :kill_timeout, 5 unless defined? kill_timeout
44
44
 
45
45
  set :stdout_log_path, lambda { "#{shared_path}/log/#{node_env}.out.log" }
46
46
  set :stderr_log_path, lambda { "#{shared_path}/log/#{node_env}.err.log" }
@@ -58,6 +58,7 @@ stop on shutdown
58
58
 
59
59
  respawn
60
60
  respawn limit 99 5
61
+ kill timeout #{kill_timeout}
61
62
 
62
63
  script
63
64
  cd #{current_path} && exec sudo -u #{node_user} NODE_ENV=#{node_env} #{app_environment} #{node_binary} #{current_path}/#{app_command} 2>> #{stderr_log_path} 1>> #{stdout_log_path}
@@ -69,11 +70,8 @@ EOD
69
70
  namespace :node do
70
71
  desc "Check required packages and install if packages are not installed"
71
72
  task :install_packages do
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
+ run "mkdir -p #{previous_release}/node_modules ; cp -r #{previous_release}/node_modules #{release_path}" if previous_release
74
+ run "cd #{release_path} && npm install --loglevel warn"
77
75
  end
78
76
 
79
77
  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.13
4
+ version: 1.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-17 00:00:00.000000000 Z
11
+ date: 2014-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railsless-deploy
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 2.0.14
136
+ rubygems_version: 2.0.3
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: Capistrano recipes for deploying node apps