rob_cap_recipes 0.0.1 → 0.0.2
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: b267201f5e5446369a4e5b08b8f56273a761bd3a
|
4
|
+
data.tar.gz: 2789bdfdca22ebb9a9d36e28e8c3e0eac79b5c11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e71a8896ca3a25c055b0a2c3d5771c9a28182abeefc214cba270258d10e108e0067ba3821458bc045125c5d00d5929748c75e894293e4f67d003f9cdf6bdc7d
|
7
|
+
data.tar.gz: 7c6ceab578dd3e0d8aff443ab831537d03f1626d23cb4c1eacf180d70069fcc312f017620bf63022654d7ebee83942b4a8d1967f44fa85e702fac9d9c49a733a
|
@@ -12,8 +12,7 @@ Capistrano::Configuration.instance(true).load do
|
|
12
12
|
|
13
13
|
_cset :scm, :git
|
14
14
|
set(:repository) { "git@gitlab.stridsberg.nu:ruby_#{application.downcase}.git" }
|
15
|
-
_cset
|
16
|
-
|
15
|
+
_cset(:branch) { `git rev-parse --abbrev-ref HEAD` }
|
17
16
|
|
18
17
|
_cset :use_sudo, false
|
19
18
|
_cset :keep_releases, 5
|
@@ -4,6 +4,7 @@ Capistrano::Configuration.instance(true).load do
|
|
4
4
|
task :revision, roles: :web do
|
5
5
|
unless `git rev-parse HEAD` == `git rev-parse origin/#{branch}`
|
6
6
|
puts "WARNING: HEAD is not the same as origin/#{branch}"
|
7
|
+
puts "if you are on another branch use caps deploy -s branch='current_branch'"
|
7
8
|
puts "Run `git push` to sync changes."
|
8
9
|
exit
|
9
10
|
end
|
@@ -1,9 +1,9 @@
|
|
1
|
-
upstream unicorn
|
1
|
+
upstream unicorn.<%= host_header %> {
|
2
2
|
server unix:/tmp/unicorn.<%= application %>.sock fail_timeout=0;
|
3
3
|
}
|
4
4
|
|
5
5
|
server {
|
6
|
-
listen
|
6
|
+
listen 80;
|
7
7
|
server_name <%= host_header %>;
|
8
8
|
root <%= current_path %>/public;
|
9
9
|
|
@@ -18,7 +18,7 @@ server {
|
|
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
|
21
|
+
proxy_pass http://unicorn.<%=host_header %>;
|
22
22
|
}
|
23
23
|
|
24
24
|
error_page 500 502 503 504 /500.html;
|