capistrano-exfel 0.0.3 → 0.0.4
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/README.md +1 -1
- data/lib/capistrano/exfel/version.rb +1 -1
- data/lib/capistrano/tasks/app_home.rake +21 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b4a873adad3ef206ff361f74db0bc3f0ecfde2b
|
4
|
+
data.tar.gz: 677550b05775c19439f9c7fe154bfd653e876f8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b30622303b038d35790408e5c47afa450720199f8317eed3344ecd5183f9d82484894aca7e2d4fe24aebc27b5f51443ad5cbf5c5196e813e49566595636f897
|
7
|
+
data.tar.gz: edf5dc53e86ac205369c542b58a80248d32841f11702359c3bb38e57be68daa38c23bd13644aae7a82a2d73249a30347cba05936ba843e34f030e446546c5390
|
data/README.md
CHANGED
@@ -79,13 +79,6 @@ namespace :app_home do
|
|
79
79
|
debug "chown -R nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/log"
|
80
80
|
execute "#{sudo_cmd} chown -R nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/log"
|
81
81
|
|
82
|
-
# # Only files should be changed
|
83
|
-
# debug "chown nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/config/*"
|
84
|
-
# execute "#{sudo_cmd} chown nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/config/*"
|
85
|
-
#
|
86
|
-
# debug "chmod 440 #{fetch(:shared_path)}/config/*"
|
87
|
-
# execute "#{sudo_cmd} chmod 440 #{fetch(:shared_path)}/config/*"
|
88
|
-
|
89
82
|
# Needs write permissions
|
90
83
|
debug "chown -R nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/tmp/"
|
91
84
|
execute "#{sudo_cmd} chown -R nobody.#{fetch(:app_group_owner)} #{fetch(:shared_path)}/tmp/"
|
@@ -94,11 +87,30 @@ namespace :app_home do
|
|
94
87
|
end
|
95
88
|
end
|
96
89
|
|
90
|
+
desc 'Correct public folder permissions'
|
91
|
+
task :correct_public_folder_permissions do
|
92
|
+
on roles(:app) do
|
93
|
+
within release_path do
|
94
|
+
sudo_cmd = "echo #{fetch(:password)} | sudo -S"
|
95
|
+
|
96
|
+
debug '#' * 50
|
97
|
+
set :public_folder_path, "#{release_path}/public"
|
98
|
+
|
99
|
+
debug '#' * 50
|
100
|
+
chown_command = "chown -Rf nobody.#{fetch(:app_group_owner)} #{fetch(:public_folder_path)}/*"
|
101
|
+
debug chown_command
|
102
|
+
execute "#{sudo_cmd} #{chown_command}"
|
103
|
+
|
104
|
+
debug '#' * 50
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
97
109
|
task :reload_server_cache do
|
98
110
|
on roles(:app), in: :sequence, wait: 5 do
|
99
111
|
debug '#' * 100
|
100
|
-
debug "
|
101
|
-
execute :
|
112
|
+
debug "wget -v -p --spider https://in.xfel.eu/#{fetch(:app_name_uri)}"
|
113
|
+
execute :wget, "-v -p --spider https://in.xfel.eu/#{fetch(:app_name_uri)}"
|
102
114
|
debug 'Application visited successfully...'
|
103
115
|
debug '#' * 100
|
104
116
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-exfel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Luis Maia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|