railman-deployment 2.2.3 → 2.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/lib/railman/tasks/deployment.rake +9 -2
- data/lib/railman-deployment/version.rb +1 -1
- data/railman-deployment.gemspec +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '08c391794a6f606da6a49a05bb244a3ea2ccaa16e6c66e9188fc6bf4fe0ab859'
|
4
|
+
data.tar.gz: ee831f3f1b26c92a4047aa55edb6fec5333c915152878e5752d4727fa1c06ae2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2819eef72eacac5701988686a72b1c2d6ad7fc3764def40e3d9f12c8d414a4bc38029bd8307e5c9d8cfc18553669a44c2406e04319d48a2320cc1b8c868ce5e4
|
7
|
+
data.tar.gz: 054b26fc490679679a85a4faee56fd19a49ec42785198a2216e7990037249339d64de346df84d42d6dc46077219fe53dd24f24d00f700bd3e0560bae5bb97bf2
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.6.6
|
@@ -6,6 +6,7 @@ task :setup do
|
|
6
6
|
invoke :fetch_and_reset_git_repository
|
7
7
|
else
|
8
8
|
execute :git, :clone, fetch(:repo_url), fetch(:deploy_to)
|
9
|
+
invoke :fetch_and_reset_git_repository
|
9
10
|
end
|
10
11
|
server_conf_dir = "#{fetch(:deploy_to)}/config/server"
|
11
12
|
execute :su_cp, "#{server_conf_dir}/puma.service /lib/systemd/system/#{fetch(:application)}.service"
|
@@ -49,6 +50,7 @@ task :remove do
|
|
49
50
|
execute :systemctl, :disable, "#{fetch(:application)}_sidekiq" if fetch(:rails_app, true)
|
50
51
|
execute :su_rm, "-f /lib/systemd/system/#{fetch(:application)}.service"
|
51
52
|
execute :su_rm, "-f /lib/systemd/system/#{fetch(:application)}_sidekiq.service" if fetch(:rails_app, true)
|
53
|
+
execute :systemctl, 'daemon-reload'
|
52
54
|
# dropt the database and remove the application directory from /home/deploy/apps
|
53
55
|
within fetch(:deploy_to) do
|
54
56
|
execute :rake, 'db:drop' if fetch(:rails_app, true)
|
@@ -72,6 +74,11 @@ task :deploy do
|
|
72
74
|
execute :bundle, :install
|
73
75
|
execute :rake, 'db:migrate' if fetch(:rails_app, true)
|
74
76
|
execute :rake, 'assets:precompile' if fetch(:rails_app, true)
|
77
|
+
server_conf_dir = "#{fetch(:deploy_to)}/config/server"
|
78
|
+
execute :su_cp, "#{server_conf_dir}/puma.service /lib/systemd/system/#{fetch(:application)}.service"
|
79
|
+
execute :su_cp, "#{server_conf_dir}/sidekiq.service /lib/systemd/system/#{fetch(:application)}_sidekiq.service" if fetch(:rails_app, true)
|
80
|
+
execute :su_cp, "#{server_conf_dir}/logrotate.conf /etc/logrotate.d/#{fetch(:application)}"
|
81
|
+
execute :systemctl, 'daemon-reload'
|
75
82
|
execute :systemctl, :restart, fetch(:application)
|
76
83
|
execute :systemctl, :restart, "#{fetch(:application)}_sidekiq" if fetch(:rails_app, true)
|
77
84
|
execute :systemctl, :restart, :nginx
|
@@ -84,8 +91,8 @@ desc 'Copy database from the server to the local machine and sync directories fr
|
|
84
91
|
task :update do
|
85
92
|
on roles(:all) do
|
86
93
|
within fetch(:deploy_to) do
|
87
|
-
execute :pg_dump, "-U rails -h localhost --clean --no-owner #{fetch(:application)}_production >
|
88
|
-
download! "#{fetch(:deploy_to)}/
|
94
|
+
execute :pg_dump, "-U rails -h localhost --clean --no-owner #{fetch(:application)}_production > tmp/#{fetch(:application)}.sql"
|
95
|
+
download! "#{fetch(:deploy_to)}/tmp/#{fetch(:application)}.sql", 'db'
|
89
96
|
end if fetch(:rails_app, true)
|
90
97
|
end
|
91
98
|
run_locally do
|
data/railman-deployment.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
|
16
16
|
spec.require_paths = ["lib"]
|
17
17
|
|
18
|
-
spec.add_development_dependency "bundler", "~>
|
18
|
+
spec.add_development_dependency "bundler", "~> 2.2.16"
|
19
19
|
spec.add_development_dependency "rake", "~> 12.3.0"
|
20
20
|
spec.add_development_dependency "minitest", "~> 5.11.3"
|
21
21
|
spec.add_development_dependency "minitest-reporters", "~> 1.1.19"
|
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Jancev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.2.16
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.2.16
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,8 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
- !ruby/object:Gem::Version
|
172
172
|
version: '0'
|
173
173
|
requirements: []
|
174
|
-
|
175
|
-
rubygems_version: 2.7.6
|
174
|
+
rubygems_version: 3.2.15
|
176
175
|
signing_key:
|
177
176
|
specification_version: 4
|
178
177
|
summary: Capistrano tasks for railman-generated rails applications
|