railman-deployment 2.0.7 → 2.0.8
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 -5
- 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: aa438b0a9ca03b219e6936ff61de74d283bd8407f34a7e152ace435d422c4ab3
|
4
|
+
data.tar.gz: 29d7c2c077d20a01929b8b87b0b2adbbd3658ba214bf8245432b1bfbd1c74f2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eecc9965ef8de6dc0b3ca57dee059b57d7b99799cbe09829a0a243a5d9c2c62f81405334543073357ccb4db85c17fabeddac3fc195167203914f869158185aa1
|
7
|
+
data.tar.gz: '02496e5d8da5b13e00891e9ec11dc517d6c84118fed4494690a6473ac4ed76c60d8a901c0bf568a1298b1d1b015fa2e010a2cf0143bd71b860bf5345ad7154fd'
|
@@ -43,11 +43,6 @@ desc 'Remove the application completely from the server'
|
|
43
43
|
task :remove do
|
44
44
|
on roles(:all) do
|
45
45
|
with fetch(:environment) do
|
46
|
-
# dropt the database and remove the application directory from /home/deploy/apps
|
47
|
-
within fetch(:deploy_to) do
|
48
|
-
execute :rake, 'db:drop'
|
49
|
-
execute :su_rm, "-rf #{fetch(:deploy_to)}"
|
50
|
-
end if test "[ -d #{fetch(:deploy_to)} ]"
|
51
46
|
# stop, disable and remove systemd service files
|
52
47
|
execute :systemctl, :stop, fetch(:application)
|
53
48
|
execute :systemctl, :stop, "#{fetch(:application)}_sidekiq"
|
@@ -55,6 +50,11 @@ task :remove do
|
|
55
50
|
execute :systemctl, :disable, "#{fetch(:application)}_sidekiq"
|
56
51
|
execute :su_rm, "-f /lib/systemd/system/#{fetch(:application)}.service"
|
57
52
|
execute :su_rm, "-f /lib/systemd/system/#{fetch(:application)}_sidekiq.service"
|
53
|
+
# dropt the database and remove the application directory from /home/deploy/apps
|
54
|
+
within fetch(:deploy_to) do
|
55
|
+
execute :rake, 'db:drop'
|
56
|
+
execute :su_rm, "-rf #{fetch(:deploy_to)}"
|
57
|
+
end if test "[ -d #{fetch(:deploy_to)} ]"
|
58
58
|
# remove application nginx configuration
|
59
59
|
execute :su_rm, "-f /etc/nginx/conf.d/#{fetch(:application)}.conf"
|
60
60
|
execute :systemctl, :restart, :nginx
|