capistrano-node-deploy 1.2.6 → 1.2.7

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: bdb57f7843c0029f8c68bd656bf6119a283cea3c
4
- data.tar.gz: c9d591eda5016709faea94f509b337745eb2220e
3
+ metadata.gz: e0535c0dd46b84fe70d0cbb1d1eb96ef12aececd
4
+ data.tar.gz: 0dab6c91e9e12f2e714cb0b7c796f786cecaf306
5
5
  SHA512:
6
- metadata.gz: 650c7acfe658b7e5c879cefa300db169b90581b8701005d0cce3f05b805681c228ff39a7d3f9687eac7ed3fd1563445d3b1b12f82a3004531c149b874c202d66
7
- data.tar.gz: 23b011dc38e91ba83c3dceebad2a6c2196731fcced9a356a079c28de552e64c2e9eabd17e7bf73dfc065bfe1c6fcd392abe9458796227b1d2f33456590fe32ba
6
+ metadata.gz: 7116ad8d353413c1dfdf3ed5328a4984e84f1aebb0eb2b0fecfd97c613297649aeb0cfa32636276e6368628d5ad2bbb25efc2c717cc30bbe1949146ec864d01e
7
+ data.tar.gz: eae50ff52922e6178ec1246da6cf62efba5086f1b534ec4839dfb4d90d5ea6cb5331f257e8df4cce79e372ad716b93f56c9df6efaaae832acc2ae22474cb67b5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.6
1
+ 1.2.7
@@ -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.6"
8
+ s.version = "1.2.7"
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-07-20"
12
+ s.date = "2013-07-21"
13
13
  s.description = "Capistrano recipes for deploying node apps"
14
14
  s.email = "james@loopj.com"
15
15
  s.extra_rdoc_files = [
@@ -40,6 +40,9 @@ Capistrano::Configuration.instance(:must_exist).load do |configuration|
40
40
  set :node_env, "production" unless defined? node_env
41
41
  set :node_user, "deploy" unless defined? node_user
42
42
 
43
+ set :stdout_log_path, lambda { "#{shared_path}/log/#{node_env}.out.log" }
44
+ set :stderr_log_path, lambda { "#{shared_path}/log/#{node_env}.err.log" }
45
+
43
46
  set :upstart_job_name, lambda { "#{application}-#{node_env}" } unless defined? upstart_job_name
44
47
  set :upstart_file_path, lambda { "/etc/init/#{upstart_job_name}.conf" } unless defined? upstart_file_path
45
48
  _cset(:upstart_file_contents) {
@@ -55,7 +58,7 @@ respawn
55
58
  respawn limit 99 5
56
59
 
57
60
  script
58
- cd #{current_path} && exec sudo -u #{node_user} NODE_ENV=#{node_env} #{app_environment} #{node_binary} #{current_path}/#{app_command} 2>> #{shared_path}/#{node_env}.err.log 1>> #{shared_path}/#{node_env}.out.log
61
+ 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}
59
62
  end script
60
63
  EOD
61
64
  }
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.6
4
+ version: 1.2.7
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-07-20 00:00:00.000000000 Z
11
+ date: 2013-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railsless-deploy