negroku 2.3.3 → 2.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/negroku/tasks/thinking_sphinx.rake +7 -7
- data/lib/negroku/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49df8e7185364d3baa0e9cf231fd651cbd33d327
|
4
|
+
data.tar.gz: dff869ebbc0b4916a9cd6d2d15265008724ae45f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f058feb0b26a8efa29d1ec5fce42f4cdda51efc0af302e774c68becc7846d2c870670fd419dab2b3b2037739a687ffa8710d55cc9ba30efa1f8433e1aa79f77a
|
7
|
+
data.tar.gz: c2a829026912082bf193ae5ba15af6f7c56f4c20ea61be311c8acaa2d00b1bdb0b46e22d0329972c99c1788004756692bcd5039abdba17f0599935dfbea02bdd
|
@@ -5,7 +5,7 @@
|
|
5
5
|
namespace :load do
|
6
6
|
task :defaults do
|
7
7
|
|
8
|
-
set :
|
8
|
+
set :thinking_sphinx_roles, :app
|
9
9
|
|
10
10
|
# Local path to look for custom config template
|
11
11
|
set :thinking_sphinx_template, -> { "config/deploy/#{fetch(:stage)}/thinking_sphinx.yml.erb" }
|
@@ -31,7 +31,7 @@ namespace :negroku do
|
|
31
31
|
|
32
32
|
desc "Upload thinking sphinx configuration file"
|
33
33
|
task :setup do
|
34
|
-
on release_roles fetch(:
|
34
|
+
on release_roles fetch(:thinking_sphinx_roles) do
|
35
35
|
within "#{shared_path}/config" do
|
36
36
|
template_path = fetch(:thinking_sphinx_template)
|
37
37
|
|
@@ -48,18 +48,18 @@ namespace :negroku do
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
|
-
|
52
|
-
on release_roles fetch(:
|
51
|
+
after 'thinking_sphinx:configure', :backup_config do
|
52
|
+
on release_roles fetch(:thinking_sphinx_roles) do
|
53
53
|
within "#{shared_path}/config" do
|
54
54
|
execute :cp, fetch(:thinking_sphinx_configuration_file), '/tmp/sphinx.conf.bak'
|
55
55
|
end
|
56
56
|
end
|
57
57
|
end
|
58
58
|
# Backup the config on every configure
|
59
|
-
Rake::Task['thinking_sphinx:configure'].enhance ['negroku:thinking_sphinx:backup_config']
|
59
|
+
# Rake::Task['thinking_sphinx:configure'].enhance ['negroku:thinking_sphinx:backup_config']
|
60
60
|
|
61
61
|
task :check_config do
|
62
|
-
on release_roles fetch(:
|
62
|
+
on release_roles fetch(:thinking_sphinx_roles) do
|
63
63
|
within "#{shared_path}/config" do
|
64
64
|
config_diff = capture "diff -q /tmp/sphinx.conf.bak #{fetch(:thinking_sphinx_configuration_file)}", raise_on_non_zero_exit: false
|
65
65
|
set :thinking_sphinx_config_changed, !config_diff.empty?
|
@@ -92,7 +92,7 @@ end
|
|
92
92
|
|
93
93
|
# Ensure the folders needed exist
|
94
94
|
task 'deploy:check:directories' do
|
95
|
-
on release_roles fetch(:
|
95
|
+
on release_roles fetch(:thinking_sphinx_roles) do
|
96
96
|
execute :mkdir, '-pv', "#{shared_path}/db"
|
97
97
|
execute :mkdir, '-pv', "#{shared_path}/tmp/pids"
|
98
98
|
execute :mkdir, '-pv', "#{shared_path}/sphinx_binlog"
|
data/lib/negroku/version.rb
CHANGED