rob_cap_recipes 0.0.2 → 0.0.3

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: b267201f5e5446369a4e5b08b8f56273a761bd3a
4
- data.tar.gz: 2789bdfdca22ebb9a9d36e28e8c3e0eac79b5c11
3
+ metadata.gz: 63908a2f06a29f54f7829069c4f78efdc2d9c8be
4
+ data.tar.gz: 6b2262c8a79ed8852e13ef75fc72c5e602b9bdf4
5
5
  SHA512:
6
- metadata.gz: 2e71a8896ca3a25c055b0a2c3d5771c9a28182abeefc214cba270258d10e108e0067ba3821458bc045125c5d00d5929748c75e894293e4f67d003f9cdf6bdc7d
7
- data.tar.gz: 7c6ceab578dd3e0d8aff443ab831537d03f1626d23cb4c1eacf180d70069fcc312f017620bf63022654d7ebee83942b4a8d1967f44fa85e702fac9d9c49a733a
6
+ metadata.gz: c61290bfb43325f1f38687b218fda4c953aed2c3014b12bb7f71268b5e6f5d5527170b2a52e1d6f590c49204e53a6971cba1195a9ee06fa40012327ee66b52e0
7
+ data.tar.gz: 03de8f594964a343b4ae54ac7efaf098a87bac00edc0e167e9c74f742b8a4e31bbff0b132bf6992013ed0b20d540798f5fbd50fe7941d54140576f8f19958b3e
@@ -1,6 +1,6 @@
1
1
  require "rob_cap_recipes/recipes/base"
2
2
  require "rob_cap_recipes/recipes/nginx"
3
- require "rob_cap_recipes/recipes/unicorn"
3
+ # require "rob_cap_recipes/recipes/unicorn"
4
4
  require "rob_cap_recipes/recipes/nodejs"
5
5
  require "rob_cap_recipes/recipes/rbenv"
6
6
  require "rob_cap_recipes/recipes/check"
@@ -11,7 +11,7 @@ Capistrano::Configuration.instance(true).load do
11
11
 
12
12
  desc "Setup nginx configuration for this application"
13
13
  task :setup, roles: :web do
14
- template "nginx_unicorn.erb", "/tmp/nginx_conf"
14
+ template "nginx.erb", "/tmp/nginx_conf"
15
15
  run "#{sudo} mv /tmp/nginx_conf /etc/nginx/sites-enabled/#{application}"
16
16
  restart
17
17
  end
@@ -1,5 +1,5 @@
1
- upstream unicorn.<%= host_header %> {
2
- server unix:/tmp/unicorn.<%= application %>.sock fail_timeout=0;
1
+ upstream nginx.<%= host_header %> {
2
+ server unix:/tmp/nginx.<%= application %>.sock fail_timeout=0;
3
3
  }
4
4
 
5
5
  server {
@@ -13,12 +13,12 @@ server {
13
13
  add_header Cache-Control public;
14
14
  }
15
15
 
16
- try_files $uri/index.html $uri @unicorn;
17
- location @unicorn {
16
+ try_files $uri/index.html $uri @<%= application %>;
17
+ location @<%= application %> {
18
18
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
19
19
  proxy_set_header Host $http_host;
20
20
  proxy_redirect off;
21
- proxy_pass http://unicorn.<%=host_header %>;
21
+ proxy_pass http://nginx.<%=host_header %>;
22
22
  }
23
23
 
24
24
  error_page 500 502 503 504 /500.html;
@@ -1,3 +1,3 @@
1
1
  module RobCapRecipes
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rob_cap_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robin Stridsberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-21 00:00:00.000000000 Z
11
+ date: 2013-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -47,7 +47,7 @@ files:
47
47
  - lib/rob_cap_recipes/recipes/nodejs.rb
48
48
  - lib/rob_cap_recipes/recipes/rbenv.rb
49
49
  - lib/rob_cap_recipes/recipes/templates/mysql.yml.erb
50
- - lib/rob_cap_recipes/recipes/templates/nginx_unicorn.erb
50
+ - lib/rob_cap_recipes/recipes/templates/nginx.erb
51
51
  - lib/rob_cap_recipes/recipes/templates/unicorn.rb.erb
52
52
  - lib/rob_cap_recipes/recipes/templates/unicorn_init.erb
53
53
  - lib/rob_cap_recipes/recipes/unicorn.rb