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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63908a2f06a29f54f7829069c4f78efdc2d9c8be
|
4
|
+
data.tar.gz: 6b2262c8a79ed8852e13ef75fc72c5e602b9bdf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 "
|
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
|
2
|
-
server unix:/tmp/
|
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
|
17
|
-
location
|
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://
|
21
|
+
proxy_pass http://nginx.<%=host_header %>;
|
22
22
|
}
|
23
23
|
|
24
24
|
error_page 500 502 503 504 /500.html;
|
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.
|
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-
|
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/
|
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
|