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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d0f65bb87534dca8517bc2f1ca18a9a22496bcb6a919c5edc046eba9d0a30aa
4
- data.tar.gz: 3a76798da09132a5f642a300d8c9d2fb70ffef830b758f620a12e1b0189ed8ce
3
+ metadata.gz: '08c391794a6f606da6a49a05bb244a3ea2ccaa16e6c66e9188fc6bf4fe0ab859'
4
+ data.tar.gz: ee831f3f1b26c92a4047aa55edb6fec5333c915152878e5752d4727fa1c06ae2
5
5
  SHA512:
6
- metadata.gz: 16ae42bff7b4e718a7f2a540f8f2686d2359cbf9ff564eda21398183aacee6f9fdd5c57759259bff5d0fa0f42c8ed19c5af44490805c5e26a684aedcfc08b7ee
7
- data.tar.gz: 65ed76264b3df5f4842f445dd5c13ae46eb79eff9d2c730502cbb311b37dc02f3b67c1fa9511a62fd6649c89ef5731e83bfdfe0cae23492cf54947df6eafcc37
6
+ metadata.gz: 2819eef72eacac5701988686a72b1c2d6ad7fc3764def40e3d9f12c8d414a4bc38029bd8307e5c9d8cfc18553669a44c2406e04319d48a2320cc1b8c868ce5e4
7
+ data.tar.gz: 054b26fc490679679a85a4faee56fd19a49ec42785198a2216e7990037249339d64de346df84d42d6dc46077219fe53dd24f24d00f700bd3e0560bae5bb97bf2
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ /.idea
1
2
  /.bundle/
2
3
  /.yardoc
3
4
  /Gemfile.lock
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.0
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 > db/#{fetch(:application)}.sql"
88
- download! "#{fetch(:deploy_to)}/db/#{fetch(:application)}.sql", 'db'
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
@@ -1,3 +1,3 @@
1
1
  module RailmanDeployment
2
- VERSION = '2.2.3'
2
+ VERSION = '2.2.8'
3
3
  end
@@ -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", "~> 1.16.1"
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.3
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: 2018-10-19 00:00:00.000000000 Z
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: 1.16.1
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: 1.16.1
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
- rubyforge_project:
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