negroku 0.0.9 → 0.0.10
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 +4 -4
- data/lib/negroku/deploy.rb +1 -0
- data/lib/negroku/tasks/unicorn.rb +8 -16
- data/lib/negroku/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ab5c70c42ed34cdf1c11e52d05a4763dafe3c1e2
|
|
4
|
+
data.tar.gz: ed3719aa67829b91e6d15008622fbc7d6c30ef7e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c3adafc297c4169c6fa9fa4c6a5e9d3f0b42ee2f6e1b877d732c20dbb9d1a541636e0575ab36f78db606c96d86b8e6cfb8f6ce01db532ba054894a2a916197b
|
|
7
|
+
data.tar.gz: 879c22fe992228a710097c30236ba160eb5141f616f1a7d7cf36b8248ec8179374b7b47982bd1dd83375eb18b9abb55f519f135b132cd8902d02ea9dd6ed013a
|
data/lib/negroku/deploy.rb
CHANGED
|
@@ -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
|
-
|
|
27
|
-
|
|
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
|
data/lib/negroku/version.rb
CHANGED
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.
|
|
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-
|
|
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:
|