capistrano_node_recipes 1.2.15 → 1.2.16

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: e17dbe955550545af5aab8e619c5c383af390b48
4
- data.tar.gz: 54e58d711ba9b31fc228a76d0e09bb1913bb2280
3
+ metadata.gz: d4eb39e429789932934cecaa4fbd05219947a21c
4
+ data.tar.gz: 1f5fd44add069d2ebed7226100fb6675ce052cc0
5
5
  SHA512:
6
- metadata.gz: edb3b39efaf25808ff3d3840455e0f6ea30d81ae05d4ffe8c0a879b5440005559e1c9b138d8f2bd9e6aa1e5cc6ea14f830817caf7dd858475d3345550f1388a5
7
- data.tar.gz: f46a39fd84d17e39a6d9ec5e4628f0d815ce20c04409f2716bdf1489dfcb9e469a6d3b193bb492389a29ec971deebaa356dd714e1b45f545cfd7c0cb1f76e33c
6
+ metadata.gz: ab00d3504be015d885b81faa312a9d9db8aebd574070a1a33cd0830fdbb6a200da14030747810e44fbf32568723675d17dba15f0da83f936554ea18702c7392e
7
+ data.tar.gz: 825d3f60cf1ce04bd02266df2603ae4189a9cd4d128e27fa6dbeab2a46de0b0bee149e20d9ba899a568be048b89d1c93d23ece44803d1b99f824bb65dd0bfb69
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.13
1
+ 1.2.15
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "capistrano_node_recipes"
8
- s.version = "1.2.15"
8
+ s.version = "1.2.16"
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", "Alex Dubovskoy"]
@@ -27,8 +27,6 @@ Capistrano::Configuration.instance(:must_exist).load do |configuration|
27
27
  default_run_options[:pty] = true
28
28
  before "deploy", "deploy:create_release_dir"
29
29
  before "deploy:create_symlink", "node:install_packages"
30
- after "deploy:update", "node:restart"
31
- after "deploy:rollback", "node:restart"
32
30
 
33
31
  package_json = MultiJson.load(File.open("package.json").read) rescue {}
34
32
 
@@ -44,27 +42,6 @@ Capistrano::Configuration.instance(:must_exist).load do |configuration|
44
42
  set :stdout_log_path, lambda { "#{shared_path}/log/#{node_env}.out.log" }
45
43
  set :stderr_log_path, lambda { "#{shared_path}/log/#{node_env}.err.log" }
46
44
 
47
- set :upstart_job_name, lambda { "#{application}-#{node_env}" } unless defined? upstart_job_name
48
- set :upstart_file_path, lambda { "/etc/init/#{upstart_job_name}.conf" } unless defined? upstart_file_path
49
- _cset(:upstart_file_contents) {
50
- <<EOD
51
- #!upstart
52
- description "#{application} node app"
53
- author "capistrano"
54
-
55
- start on runlevel [2345]
56
- stop on shutdown
57
-
58
- respawn
59
- respawn limit 99 5
60
-
61
- script
62
- 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}
63
- end script
64
- EOD
65
- }
66
-
67
-
68
45
  namespace :node do
69
46
  desc "Check required packages and install if packages are not installed"
70
47
  task :install_packages do
@@ -75,36 +52,6 @@ EOD
75
52
  run "ln -s #{shared_path}/node_modules #{release_path}/node_modules"
76
53
  end
77
54
 
78
- # task :check_upstart_config do
79
- # create_upstart_config if remote_file_differs?(upstart_file_path, upstart_file_contents)
80
- # end
81
-
82
- # desc "Create upstart script for this node app"
83
- # task :create_upstart_config do
84
- # temp_config_file_path = "#{shared_path}/#{application}.conf"
85
-
86
- # # Generate and upload the upstart script
87
- # put upstart_file_contents, temp_config_file_path
88
-
89
- # # Copy the script into place and make executable
90
- # sudo "cp #{temp_config_file_path} #{upstart_file_path}"
91
- # end
92
-
93
- desc "Start the node application"
94
- task :start do
95
- sudo "start #{upstart_job_name}"
96
- end
97
-
98
- desc "Stop the node application"
99
- task :stop do
100
- sudo "stop #{upstart_job_name}"
101
- end
102
-
103
- desc "Restart the node application"
104
- task :restart do
105
- sudo "stop #{upstart_job_name}; true"
106
- sudo "start #{upstart_job_name}"
107
- end
108
55
  end
109
56
 
110
57
  namespace :deploy do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_node_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.15
4
+ version: 1.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith