kapify 0.0.13 → 0.0.14

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: 6364d3b26aed22d1a3f66879532e670b06604984
4
- data.tar.gz: e048fbc937b08a80be97405ec8e9ab0f87efc31e
3
+ metadata.gz: 568b2cc1b106ad3991acff52977aadeeea6a9ce7
4
+ data.tar.gz: f6f3b3d8dff00cd2c6b0e12ce6e456a3825c7133
5
5
  SHA512:
6
- metadata.gz: a03aae7fb043d13c50a2bed7bc28796887865bca1dc2ffe36e9f447209a2fb85d9d28608be7692b25413d379931bab931dc98bcda7ffbc9bb8b3a0b5a64e76fc
7
- data.tar.gz: c83ab85d70b990a345f55e2a1eee0863e2cdb63c7e53a628bca24366061eebbca6971b31542bc4001ab02983ef840669653d1e9f8486cf8a85170bf0fc2ae548
6
+ metadata.gz: a6f0244696593a351a1317f7c7ee4a5f9aa6b2b045dc8c292f76532706a105c385c4a3e3c374f8d2e30568e82c304b7559c06b2fd87a73260f2e34835433b0a0
7
+ data.tar.gz: 82b62012ec3802b1f9489178caef20f387fb2ea4a884756433a119940685f75dadc13120acbb3309238b619abdf49a47e6f9ec0046c90b20ea7213f644c816fe
@@ -6,7 +6,7 @@ upstream <%= application %> {
6
6
  server {
7
7
  listen 80;
8
8
  server_name <%= nginx_server_name %>;
9
- rewrite ^(.*) https://$server_name$1 permanent;
9
+ rewrite ^(.*) https://$server_name$2 permanent;
10
10
  }
11
11
  <% end %>
12
12
 
@@ -4,7 +4,7 @@ require 'kapify/base'
4
4
  Capistrano::Configuration.instance.load do
5
5
  namespace :kapify do
6
6
  desc "Setup logs rotation for application logs"
7
- task :logrotate, roles: [:web, :app] do
7
+ task :logrotate, except: { no_release: true } do
8
8
  kapify_template("logrotate", "logrotate.erb", "/tmp/#{application}_logrotate")
9
9
  run "#{sudo} mv /tmp/#{application}_logrotate /etc/logrotate.d/#{application}"
10
10
  run "#{sudo} chown root:root /etc/logrotate.d/#{application}"
@@ -34,7 +34,7 @@ Capistrano::Configuration.instance.load do
34
34
  end
35
35
 
36
36
  desc "Generate the database.yml configuration file."
37
- task :setup, roles: :app do
37
+ task :setup, roles: [:app, :resque_worker] do
38
38
  run "mkdir -p #{shared_path}/config"
39
39
  kapify_template("pg", "database.yml.erb", "#{shared_path}/config/database.yml")
40
40
  end
@@ -42,7 +42,7 @@ Capistrano::Configuration.instance.load do
42
42
  after "deploy:setup", "kapify:pg:setup"
43
43
 
44
44
  desc "Symlink the database.yml file into latest release"
45
- task :symlink, roles: :app do
45
+ task :symlink, roles: [:app, :resque_worker] do
46
46
  run "ln -nfs #{shared_path}/config/database.yml #{release_path}/config/database.yml"
47
47
  end
48
48
 
@@ -1,3 +1,3 @@
1
1
  module Kapify
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kapify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Tkalin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-01 00:00:00.000000000 Z
11
+ date: 2013-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano