railman-deployment 2.2.5 → 2.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/railman-deployment/version.rb +1 -1
- data/lib/railman/tasks/deployment.rake +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5c496def8d465807820bad8bcfb1f2a293b57401d55580b215aa96fec90dbd6
|
4
|
+
data.tar.gz: 91c4443c309117121818a9a644f00d8904009e9c23c21f4ec4b9bc906a579017
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c8570577c5268826c23d2b886d6a34cb42a4c5c2128a87c1c973bd8f73d2abe5e217e9dd46c91688ba97af989780496018a6a22befc722a94db2fba45634fb9
|
7
|
+
data.tar.gz: 6b48623cb6d9d904b27cfe3d9380c8a5396a0e1533ced7eebb6c5d939da94d3c7bf4cd2a0daaa785a19b20bf100b98c9e790c3221e33791f4471b7bdd282d649
|
@@ -49,6 +49,7 @@ task :remove do
|
|
49
49
|
execute :systemctl, :disable, "#{fetch(:application)}_sidekiq" if fetch(:rails_app, true)
|
50
50
|
execute :su_rm, "-f /lib/systemd/system/#{fetch(:application)}.service"
|
51
51
|
execute :su_rm, "-f /lib/systemd/system/#{fetch(:application)}_sidekiq.service" if fetch(:rails_app, true)
|
52
|
+
execute :systemctl, 'daemon-reload'
|
52
53
|
# dropt the database and remove the application directory from /home/deploy/apps
|
53
54
|
within fetch(:deploy_to) do
|
54
55
|
execute :rake, 'db:drop' if fetch(:rails_app, true)
|
@@ -76,6 +77,7 @@ task :deploy do
|
|
76
77
|
execute :su_cp, "#{server_conf_dir}/puma.service /lib/systemd/system/#{fetch(:application)}.service"
|
77
78
|
execute :su_cp, "#{server_conf_dir}/sidekiq.service /lib/systemd/system/#{fetch(:application)}_sidekiq.service" if fetch(:rails_app, true)
|
78
79
|
execute :su_cp, "#{server_conf_dir}/logrotate.conf /etc/logrotate.d/#{fetch(:application)}"
|
80
|
+
execute :systemctl, 'daemon-reload'
|
79
81
|
execute :systemctl, :restart, fetch(:application)
|
80
82
|
execute :systemctl, :restart, "#{fetch(:application)}_sidekiq" if fetch(:rails_app, true)
|
81
83
|
execute :systemctl, :restart, :nginx
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railman-deployment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Jancev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|