capistrano-unicorn-nginx 0.0.4 → 1.0.0

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: 63a6067c1a22a6f89b2d5406c2f05cd2b81c5d59
4
- data.tar.gz: 13cc40fd4612c0d29fb6109c3ba6b3cbb5c2a262
3
+ metadata.gz: feb8b0da77445c6c9ab71b8cb47ebd81beaeeb73
4
+ data.tar.gz: 67825da92ed8d2d476f6f35ad797974b494c60f0
5
5
  SHA512:
6
- metadata.gz: 66a25720f758524dccb47ba0c376ee3fd729cf6c991c2512e2d32f9fcf91907b66c9c895ddfa5ca321913ea7a80b6f6d287b4c54a9a72c783311ac16ee5c58a0
7
- data.tar.gz: 45fe6bff72128006fa5e2bd2fb96433f572b40e2e4b3190288d4064146e0c533b3faae406115c1c6a1fa78be49ecdd277ad0e59a2bde4e35024efd1779303568
6
+ metadata.gz: 4f90081c4e412b9e724eadb8523a4de5a5f2b7ec4006a2c7c83ee4dceb6d0925cc2fdb23857ff944477268ebbcdbc68a7687792f6214673705b9fad0fbd6d851
7
+ data.tar.gz: b6f29cc5a2d965c1ea751123037dd121a93010f70758d84b1ef59082f7986966c3d32f67e544bb524126983b29b95d823f71aee43b198ca972132ccd4c8325a3
@@ -0,0 +1,2 @@
1
+ ### v1.0.0, 2014-03-39
2
+ - @bruno- all the v1.0.0 features
@@ -5,9 +5,9 @@ include Capistrano::UnicornNginx::Helpers
5
5
  namespace :load do
6
6
  task :defaults do
7
7
  set :templates_path, 'config/deploy/templates'
8
- set :nginx_server_name, -> { host.to_s }
9
8
  set :nginx_config_name, -> { "#{fetch(:application)}_#{fetch(:stage)}" }
10
9
  set :nginx_pid, '/run/nginx.pid'
10
+ # set :nginx_server_name # default set in the `nginx:defaults` task
11
11
  # ssl options
12
12
  set :nginx_use_ssl, false
13
13
  set :nginx_ssl_cert, -> { "#{fetch(:nginx_server_name)}.crt" }
@@ -19,6 +19,13 @@ namespace :load do
19
19
  end
20
20
 
21
21
  namespace :nginx do
22
+
23
+ task :defaults do
24
+ on roles :web do
25
+ set :nginx_server_name, fetch(:nginx_server_name, host.to_s)
26
+ end
27
+ end
28
+
22
29
  desc 'Setup nginx configuration'
23
30
  task :setup do
24
31
  on roles :web do
@@ -55,6 +62,9 @@ namespace :nginx do
55
62
  sudo '/etc/init.d/nginx reload'
56
63
  end
57
64
  end
65
+
66
+ before :setup, :defaults
67
+ before :setup_ssl, :defaults
58
68
  end
59
69
 
60
70
  namespace :deploy do
@@ -11,6 +11,8 @@ namespace :load do
11
11
  set :unicorn_log, -> { shared_path.join("log/unicorn.log") }
12
12
  set :unicorn_user, nil # user is set by executing `id -un` on the server
13
13
  set :unicorn_workers, 2
14
+
15
+ set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids')
14
16
  end
15
17
  end
16
18
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module UnicornNginx
3
- VERSION = "0.0.4"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-unicorn-nginx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Sutic
@@ -65,6 +65,7 @@ extensions: []
65
65
  extra_rdoc_files: []
66
66
  files:
67
67
  - ".gitignore"
68
+ - CHANGELOG.md
68
69
  - Gemfile
69
70
  - LICENSE.md
70
71
  - README.md