capistrano-exfel 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/capistrano/exfel/version.rb +1 -1
- data/lib/capistrano/tasks/app_home.rake +6 -1
- data/lib/capistrano/tasks/application.rake +5 -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: d93c7a1c63f291d582abe4f3cafc84f415ab1607
|
4
|
+
data.tar.gz: 4b05eff2f7548c9ff5e1f34d864c3368f72adb46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98d013889bbeaf37ba85a1d6bfc015eb3dcd818c5ac1252a4fe6a45db1450c30511ce1d6c5ea449075214a58aebf09d453a7c39d02e812cf7838cd0f6d76d73a
|
7
|
+
data.tar.gz: 4eb5dcfb0c204617eaa8329bc5c04904e10b6677ff83f9b5ae38df460e015d718091d4f50ac53345982c1a28dfacfb038d5b1a6bf48af73d7e2adf2aea3c3370
|
data/README.md
CHANGED
@@ -106,12 +106,17 @@ namespace :app_home do
|
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
109
|
-
task :
|
109
|
+
task :clear_tmp_files do
|
110
110
|
on roles(:app), in: :sequence, wait: 5 do
|
111
111
|
debug '#' * 100
|
112
112
|
debug 'rake tmp:clear'
|
113
113
|
execute_rake_command('tmp:clear')
|
114
|
+
debug '#' * 100
|
115
|
+
end
|
116
|
+
end
|
114
117
|
|
118
|
+
task :reload_server_cache do
|
119
|
+
on roles(:app), in: :sequence, wait: 5 do
|
115
120
|
debug '#' * 100
|
116
121
|
debug "wget -v -p --spider https://in.xfel.eu/#{fetch(:app_name_uri)}"
|
117
122
|
execute :wget, "-v -p --spider https://in.xfel.eu/#{fetch(:app_name_uri)}"
|
@@ -42,6 +42,7 @@ namespace :application do
|
|
42
42
|
|
43
43
|
desc 'Restarts the application, including reloading server cache'
|
44
44
|
task :restart do
|
45
|
+
invoke 'app_home:clear_tmp_files'
|
45
46
|
# invoke 'app_home:restart'
|
46
47
|
invoke 'apache:restart'
|
47
48
|
invoke 'app_home:reload_server_cache'
|
@@ -102,7 +103,10 @@ namespace :load do
|
|
102
103
|
end
|
103
104
|
|
104
105
|
# Build default application URI
|
105
|
-
set :default_app_uri, ->
|
106
|
+
set :default_app_uri, -> do
|
107
|
+
"#{fetch(:app_name)}" if get_rails_env_abbr.blank?
|
108
|
+
"#{get_rails_env_abbr}_#{fetch(:app_name)}" unless get_rails_env_abbr.blank?
|
109
|
+
end
|
106
110
|
|
107
111
|
set :app_name_uri, -> do
|
108
112
|
ask("Please specify the application URI (i.e. #{fetch(:default_app_uri)})", fetch(:default_app_uri))
|