california 1.0.1 → 1.1.0
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 819f6ff42a652f3db100f9161373397a541e2968
|
|
4
|
+
data.tar.gz: 16dda451232ec2f5613cdcd9d62ca37aecde6961
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 597a8f2cc42c8fc515014a94aa49879ee61a18d123a16ba1de9d24a2969b4bf1af8e2d29e1eb8a0bfc0f94807119d02a16610c18bf134bcce69d184020a971a3
|
|
7
|
+
data.tar.gz: d8915051856c443622c711e98604d83b2a898f9315e4e620b992210a234f57afccc7bdf7007b235be9a1aadf8c6f728ec49edf719a90d29ad856c3986511e96f
|
|
@@ -82,23 +82,24 @@ namespace :deploy do
|
|
|
82
82
|
task :publishing do
|
|
83
83
|
if fetch(:skip_restart)
|
|
84
84
|
logger.info 'Skipping Restart...'
|
|
85
|
-
else
|
|
86
85
|
|
|
86
|
+
elsif fetch(:restart_strategy) == 'restart.txt'
|
|
87
|
+
logger.info 'Restarting the app via restart.txt...'
|
|
87
88
|
on roles :app do
|
|
88
89
|
as fetch(:application) do
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
logger.info 'Restarting the app via restart.txt...'
|
|
92
|
-
within File.join(fetch(:deploy_to), 'tmp') do
|
|
93
|
-
execute :touch, 'restart.txt'
|
|
94
|
-
end
|
|
95
|
-
|
|
96
|
-
else
|
|
97
|
-
logger.info 'Restarting the app via passenger-config...'
|
|
98
|
-
execute 'passenger-config', 'restart-app', fetch(:deploy_to)
|
|
90
|
+
within File.join(fetch(:deploy_to), 'tmp') do
|
|
91
|
+
execute :touch, 'restart.txt'
|
|
99
92
|
end
|
|
100
93
|
end
|
|
101
94
|
end
|
|
95
|
+
|
|
96
|
+
else
|
|
97
|
+
logger.info 'Restarting app on web servers via passenger-config...'
|
|
98
|
+
on roles :web_server do
|
|
99
|
+
as fetch(:application) do
|
|
100
|
+
execute 'passenger-config', 'restart-app', fetch(:deploy_to)
|
|
101
|
+
end
|
|
102
|
+
end
|
|
102
103
|
end
|
|
103
104
|
end
|
|
104
105
|
|
|
@@ -27,4 +27,4 @@ load 'california/stage'
|
|
|
27
27
|
# Important: Now you need to define AT LEAST ONE server.
|
|
28
28
|
|
|
29
29
|
# Example: The one with the role "migrator" will be entitled to run migrations:
|
|
30
|
-
# server '203.0.113.19', roles: %w
|
|
30
|
+
# server '203.0.113.19', roles: %w[all app web_server migrator]
|
data/lib/california/version.rb
CHANGED