capistrano-nginx 0.0.2 → 0.1.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.
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ # Changelog
2
+
3
+ * 0.1.0 Changed socket file location
@@ -33,6 +33,7 @@ Make sure, following variables are defined in your `config/deploy.rb`:
33
33
  * `server_name` - your application's server_name in nginx (e.g. `example.com`)
34
34
  * `deploy_to` - deployment path
35
35
  * `sudo_user` - user name with sudo privileges (needed to config/restart nginx)
36
+ * `app_port` - application port (optional)
36
37
 
37
38
  Launch new tasks:
38
39
 
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Nginx
3
- VERSION = "0.0.2"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -1,14 +1,23 @@
1
1
  upstream <%= application %> {
2
- server <%= "unix:#{shared_path}/sockets/unicorn.sock fail_timeout=0" %>;
2
+ server unix:/tmp/<%= application %>.sock fail_timeout=0;
3
3
  }
4
4
 
5
5
  server {
6
+ <% if app_port %>
7
+ listen <%= app_port %> default deferred;
8
+ <% end %>
6
9
  client_max_body_size 4G;
7
10
  server_name <%= server_name %>;
8
11
  keepalive_timeout 5;
9
12
  root <%= "#{deploy_to}/current/public" %>;
10
13
  try_files $uri/index.html $uri.html $uri @<%= application %>;
11
-
14
+
15
+ location ^~ /assets/ {
16
+ gzip_static on;
17
+ expires max;
18
+ add_header Cache-Control public;
19
+ }
20
+
12
21
  location @<%= application %> {
13
22
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
14
23
  proxy_set_header Host $http_host;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-nginx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-01 00:00:00.000000000 Z
12
+ date: 2013-02-03 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Simple nginx management with capistrano
15
15
  email:
@@ -19,9 +19,10 @@ extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
21
  - .gitignore
22
+ - CHANGELOG.md
22
23
  - Gemfile
23
24
  - LICENSE
24
- - README.markdown
25
+ - README.md
25
26
  - Rakefile
26
27
  - capistrano-nginx.gemspec
27
28
  - lib/capistrano-nginx.rb
@@ -40,26 +41,26 @@ rdoc_options: []
40
41
  require_paths:
41
42
  - lib
42
43
  required_ruby_version: !ruby/object:Gem::Requirement
43
- none: false
44
44
  requirements:
45
45
  - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  segments:
49
49
  - 0
50
- hash: -3935435188463846321
51
- required_rubygems_version: !ruby/object:Gem::Requirement
50
+ hash: -1440542809374887780
52
51
  none: false
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - ! '>='
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  segments:
58
58
  - 0
59
- hash: -3935435188463846321
59
+ hash: -1440542809374887780
60
+ none: false
60
61
  requirements: []
61
62
  rubyforge_project:
62
- rubygems_version: 1.8.17
63
+ rubygems_version: 1.8.23
63
64
  signing_key:
64
65
  specification_version: 3
65
66
  summary: Configuration and managements capistrano tasks for nginx