Skip to content

Commit 710cf12

Browse files
committed
Final preparations for errbit deployment via
capistrano
1 parent 833ee97 commit 710cf12

File tree

8 files changed

+181
-4510
lines changed

8 files changed

+181
-4510
lines changed

Capfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ require 'capistrano/bundler'
66
require 'capistrano/passenger'
77
require 'capistrano/rails/assets'
88

9+
require "capistrano/scm/git"
10+
install_plugin Capistrano::SCM::Git
11+
912
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }

Gemfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ group :test do
9696
gem 'coveralls', require: false
9797
end
9898

99-
group :no_docker, :test, :development do
100-
gem 'mini_racer', platform: :ruby # C Ruby (MRI) or Rubinius, but NOT Windows
101-
end
99+
#group :no_docker, :test, :development do
100+
# gem 'mini_racer', platform: :ruby # C Ruby (MRI) or Rubinius, but NOT Windows
101+
#end
102102

103103
gem 'puma'
104104
gem 'sass-rails'
@@ -111,3 +111,6 @@ gem 'sucker_punch'
111111

112112
ENV['USER_GEMFILE'] ||= './UserGemfile'
113113
eval_gemfile ENV['USER_GEMFILE'] if File.exist?(ENV['USER_GEMFILE'])
114+
115+
gem "ed25519", "~> 1.3"
116+
gem "bcrypt_pbkdf", "~> 1.1"

Gemfile.lock

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,13 @@ GEM
4747
airbrake (4.3.8)
4848
builder
4949
multi_json
50+
airbrussh (1.4.1)
51+
sshkit (>= 1.6.1, != 1.7.0)
5052
arel (7.1.4)
5153
ast (2.4.2)
5254
bcrypt (3.1.18)
5355
bcrypt (3.1.18-java)
56+
bcrypt_pbkdf (1.1.0)
5457
better_errors (2.9.1)
5558
coderay (>= 1.0.0)
5659
erubi (>= 1.0.0)
@@ -62,6 +65,28 @@ GEM
6265
bson (4.15.0-java)
6366
builder (3.2.4)
6467
campy (1.0.0)
68+
capistrano (3.17.3)
69+
airbrussh (>= 1.0.0)
70+
i18n
71+
rake (>= 10.0.0)
72+
sshkit (>= 1.9.0)
73+
capistrano-bundler (2.1.0)
74+
capistrano (~> 3.1)
75+
capistrano-passenger (0.2.1)
76+
capistrano (~> 3.0)
77+
capistrano-rails (1.6.3)
78+
capistrano (~> 3.1)
79+
capistrano-bundler (>= 1.1, < 3)
80+
capistrano-rbenv (2.2.0)
81+
capistrano (~> 3.1)
82+
sshkit (~> 1.3)
83+
capistrano-rvm (0.1.2)
84+
capistrano (~> 3.0)
85+
sshkit (~> 1.2)
86+
capistrano3-puma (5.2.0)
87+
capistrano (~> 3.7)
88+
capistrano-bundler
89+
puma (>= 4.0, < 6.0)
6590
capybara (3.37.1)
6691
addressable
6792
matrix
@@ -107,6 +132,8 @@ GEM
107132
activesupport (>= 5.0)
108133
request_store (>= 1.0)
109134
ruby2_keywords
135+
ed25519 (1.3.0)
136+
ed25519 (1.3.0-java)
110137
email_spec (2.2.0)
111138
htmlentities (~> 4.3.3)
112139
launchy (~> 2.1)
@@ -196,11 +223,6 @@ GEM
196223
mongoid
197224
launchy (2.5.0)
198225
addressable (~> 2.7)
199-
libv8-node (16.10.0.0)
200-
libv8-node (16.10.0.0-arm64-darwin)
201-
libv8-node (16.10.0.0-x86_64-darwin)
202-
libv8-node (16.10.0.0-x86_64-darwin-19)
203-
libv8-node (16.10.0.0-x86_64-linux)
204226
listen (3.0.8)
205227
rb-fsevent (~> 0.9, >= 0.9.4)
206228
rb-inotify (~> 0.9, >= 0.9.7)
@@ -219,8 +241,6 @@ GEM
219241
mime-types-data (3.2022.0105)
220242
mini_mime (1.1.2)
221243
mini_portile2 (2.8.0)
222-
mini_racer (0.6.3)
223-
libv8-node (~> 16.10.0.0)
224244
minitest (5.16.3)
225245
mongo (2.18.1)
226246
bson (>= 4.14.1, < 5.0.0)
@@ -240,6 +260,9 @@ GEM
240260
multi_json (1.15.0)
241261
multi_xml (0.6.0)
242262
multipart-post (2.2.3)
263+
net-scp (4.0.0)
264+
net-ssh (>= 2.6.5, < 8.0.0)
265+
net-ssh (7.1.0)
243266
netrc (0.11.0)
244267
nio4r (2.5.8)
245268
nio4r (2.5.8-java)
@@ -425,6 +448,9 @@ GEM
425448
actionpack (>= 4.0)
426449
activesupport (>= 4.0)
427450
sprockets (>= 3.0.0)
451+
sshkit (1.21.5)
452+
net-scp (>= 1.1.2)
453+
net-ssh (>= 2.8.0)
428454
sucker_punch (3.0.1)
429455
concurrent-ruby (~> 1.0)
430456
sync (0.5.0)
@@ -476,16 +502,25 @@ DEPENDENCIES
476502
actionpack (= 5.0.7.2)
477503
activemodel-serializers-xml
478504
airbrake (~> 4.3.5)
505+
bcrypt_pbkdf (~> 1.1)
479506
better_errors
480507
bigdecimal (~> 1.4.4)
481508
binding_of_caller
482509
campy
510+
capistrano
511+
capistrano-bundler
512+
capistrano-passenger
513+
capistrano-rails
514+
capistrano-rbenv
515+
capistrano-rvm
516+
capistrano3-puma
483517
capybara
484518
coveralls
485519
decent_exposure
486520
devise
487521
dotenv-rails
488522
draper
523+
ed25519 (~> 1.3)
489524
email_spec
490525
errbit_github_plugin
491526
errbit_plugin
@@ -504,7 +539,6 @@ DEPENDENCIES
504539
launchy
505540
listen (~> 3.0.5)
506541
meta_request
507-
mini_racer
508542
mongoid (= 6.0.3)
509543
mongoid-rspec
510544
omniauth

ansible/roles/errbit/tasks/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,19 @@
1212
- name: Errbit | Create /home/errbit directory
1313
ansible.builtin.file:
1414
path: /home/errbit
15-
owner: deployuser
1615
state: directory
16+
owner: deployuser
1717
mode: '0755'
1818

1919
- name: Errbit | Create deploy directories
2020
remote_user: deployuser
2121
ansible.builtin.file:
2222
path: /home/errbit/{{ item }}
2323
state: directory
24+
owner: deployuser
2425
mode: '0755'
2526
with_items:
27+
- current
2628
- releases
2729
- shared
2830
- shared/config

0 commit comments

Comments
 (0)