negroku 0.0.9 → 0.0.10

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: d8bcbf49bddcbcfe1138a7f90897a0583f059a24
4
- data.tar.gz: 79767dc481fccabf7b98e957914356ebc36b6acf
3
+ metadata.gz: ab5c70c42ed34cdf1c11e52d05a4763dafe3c1e2
4
+ data.tar.gz: ed3719aa67829b91e6d15008622fbc7d6c30ef7e
5
5
  SHA512:
6
- metadata.gz: a877fa2f80e00658da039489acb20ffce20e7c176ebf79bf8fe8c7a38513042d9fa8698cc403cd884d0866c5b74f60f8f99813c425856bc79532ffef20ebce2e
7
- data.tar.gz: 9c0650449f72a3e7042146d928979fb460f9c987dbf51216f1755d52797e3af10e1950e98c0ec7cdb9050a92fd752140d8a5e9f11a24470554bcf972ed945591
6
+ metadata.gz: 4c3adafc297c4169c6fa9fa4c6a5e9d3f0b42ee2f6e1b877d732c20dbb9d1a541636e0575ab36f78db606c96d86b8e6cfb8f6ce01db532ba054894a2a916197b
7
+ data.tar.gz: 879c22fe992228a710097c30236ba160eb5141f616f1a7d7cf36b8248ec8179374b7b47982bd1dd83375eb18b9abb55f519f135b132cd8902d02ea9dd6ed013a
@@ -2,6 +2,7 @@
2
2
  # Load Deployer Helpers
3
3
  require File.join(File.dirname(__FILE__), 'helpers')
4
4
 
5
+ # Base settings
5
6
  set :scm, 'git'
6
7
  set :deploy_via, :remote_cache
7
8
  set :use_sudo, false
@@ -1,3 +1,4 @@
1
+
1
2
  # Number of workers (Rule of thumb is 2 per CPU)
2
3
  # Just be aware that every worker needs to cache all classes and thus eat some
3
4
  # of your RAM.
@@ -21,24 +22,14 @@ set_default :unicorn_pid, File.join(current_path, "tmp", "pids", "unicorn.pid")
21
22
  # Preload app for fast worker spawn
22
23
  set_default :unicorn_preload, true
23
24
 
25
+ set_default :unicorn_config_path, "#{shared_path}/config"
26
+
24
27
  # Unicorn
25
28
  #------------------------------------------------------------------------------
26
- namespace :unicorn do
27
- desc "Starts unicorn directly"
28
- task :start, :roles => :app do
29
- run "cd #{current_path} && #{unicorn_bin} -c #{shared_path}/config/unicorn.rb -E #{rails_env} -D"
30
- end
31
-
32
- desc "Stops unicorn directly"
33
- task :stop, :roles => :app do
34
- run "kill -QUIT `cat #{unicorn_pid}`"
35
- end
36
-
37
- desc "Restarts unicorn directly"
38
- task :restart, :roles => :app do
39
- run "kill -USR2 `cat #{unicorn_pid}`"
40
- end
29
+ # Load unicorn tasks
30
+ require "capistrano-unicorn"
41
31
 
32
+ namespace :unicorn do
42
33
  after "deploy:setup", "unicorn:setup"
43
34
  desc "Setup unicorn configuration for this application."
44
35
  task :setup, roles: :app do
@@ -48,9 +39,10 @@ namespace :unicorn do
48
39
 
49
40
  after "deploy", "unicorn:restart"
50
41
  after "deploy:cold", "unicorn:start"
42
+ after 'deploy:restart', 'unicorn:restart'
51
43
  end
52
44
 
53
45
 
54
46
  # after 'deploy:setup' do
55
47
  # unicorn.setup if Capistrano::CLI.ui.agree("Create unicorn configuration file? [Yn]")
56
- # end if is_using_unicorn
48
+ # end if is_using_unicorn
@@ -1,3 +1,3 @@
1
1
  module Negroku
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: negroku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Ignacio Donoso
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-10 00:00:00.000000000 Z
11
+ date: 2013-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.5.13
27
+ - !ruby/object:Gem::Dependency
28
+ name: capistrano-unicorn
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.1.9
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.1.9
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rainbow
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -90,7 +104,7 @@ files:
90
104
  - lib/negroku/version.rb
91
105
  - lib/negroku.rb
92
106
  - README.md
93
- homepage: ''
107
+ homepage: http://github.com/platanus-repos/negroku
94
108
  licenses: []
95
109
  metadata: {}
96
110
  post_install_message: