railman-deployment 2.0.5 → 2.0.6
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/railman-deployment/version.rb +1 -1
- data/lib/railman/tasks/deployment.rake +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0212d60384f9787f9afd6342a369546e6bc24ecf23bb0797024c44214c22f5fd
|
4
|
+
data.tar.gz: 75ae647aa9f214388c68dc60bf1fe7989361715e5ce243a5b8022ceab518d11a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9656b2e6a4e017097041c43a4bc04a9f564ca5f570f68a84b2c1088c721822ee289009c1949405bd055c5239897517597dd64e227d50b28641875cd9119477a6
|
7
|
+
data.tar.gz: ab43c1e9d14f1f7d064135cc8ab7eb4e9e648de94cc4d3efdf9b2b5056a80300b190b6b234b555cf3e83ba07be59815fb1b5564a6d70a481e90339715bd1b2a3
|
@@ -56,7 +56,7 @@ task :remove do
|
|
56
56
|
execute :su_rm, "-f /lib/systemd/system/#{fetch(:application)}.service"
|
57
57
|
execute :su_rm, "-f /lib/systemd/system/#{fetch(:application)}_sidekiq.service"
|
58
58
|
# remove application nginx configuration
|
59
|
-
execute :su_rm, "-f /etc/nginx/conf.d/#{fetch(:application)}"
|
59
|
+
execute :su_rm, "-f /etc/nginx/conf.d/#{fetch(:application)}.conf"
|
60
60
|
execute :systemctl, :restart, :nginx
|
61
61
|
# remove logrotate configuration
|
62
62
|
execute :su_rm, "-f /etc/logrotate.d/#{fetch(:application)}"
|
@@ -98,8 +98,10 @@ end
|
|
98
98
|
task :sync_local_dirs_to_server do
|
99
99
|
on roles(:all) do
|
100
100
|
fetch(:sync_dirs, []).each do |sync_dir|
|
101
|
-
|
102
|
-
|
101
|
+
if File.exists?("./#{sync_dir}")
|
102
|
+
run_locally do
|
103
|
+
execute "rsync -avz --delete -e ssh ./#{sync_dir}/ #{fetch(:user)}@#{fetch(:server)}:#{fetch(:deploy_to)}/#{sync_dir}/"
|
104
|
+
end
|
103
105
|
end
|
104
106
|
end
|
105
107
|
end
|