rob_cap_recipes 0.0.1 → 0.0.2

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: d3ace8b50d18face345ca37e56a01a060cb070b1
4
- data.tar.gz: ad4ed3ce98b69c3d1f4b4a994e24ab67673380ea
3
+ metadata.gz: b267201f5e5446369a4e5b08b8f56273a761bd3a
4
+ data.tar.gz: 2789bdfdca22ebb9a9d36e28e8c3e0eac79b5c11
5
5
  SHA512:
6
- metadata.gz: a7af5c447a653826642881ac2e65cabf288e60de8ae535dcedfe7584d88658b7461107cd0d815104b90920055ece4644c55a44f8829a2eb1ee63111fe50e4753
7
- data.tar.gz: 6f064d18efd01161b852a776fa2cbee290f16618f09704a5d387225150e82057db7044eda4162322c5f3f321c75628834c16dfa6cab0a18b47b6ae5662612420
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 :branch, "master"
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.<% host_header %> {
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 <%= host_header %>:80;
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.<%host_header %>;
21
+ proxy_pass http://unicorn.<%=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.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rob_cap_recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robin Stridsberg