Skip to content

Commit 829521a

Browse files
committed
Merge branch 'main' into release
2 parents b5d708b + c837092 commit 829521a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

server/config/deploy/production.rb

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
server "44.231.73.12", user: 'ubuntu', roles: %w{web db app}
22

33
set :branch, 'release'
4-
set :rbenv_ruby, '3.3.0'
4+
set :rbenv_ruby, '3.3.5'
55

66
set :rails_env, 'production'
77

@@ -14,3 +14,16 @@
1414
auth_methods: %w(publickey)
1515
}
1616
end
17+
18+
# from https://github.com/capistrano/rails?tab=readme-ov-file#uploading-your-masterkey
19+
namespace :deploy do
20+
namespace :check do
21+
before :linked_files, :set_master_key do
22+
on roles(:app) do
23+
unless test("[ -f #{shared_path}/config/credentials/production.key ]")
24+
upload! 'config/credentials/production.key', "#{shared_path}/config/credentials/production.key"
25+
end
26+
end
27+
end
28+
end
29+
end

0 commit comments

Comments
 (0)