We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e48267 commit c837092Copy full SHA for c837092
server/config/deploy/production.rb
@@ -1,7 +1,7 @@
1
server "44.231.73.12", user: 'ubuntu', roles: %w{web db app}
2
3
set :branch, 'release'
4
-set :rbenv_ruby, '3.3.0'
+set :rbenv_ruby, '3.3.5'
5
6
set :rails_env, 'production'
7
@@ -14,3 +14,16 @@
14
auth_methods: %w(publickey)
15
}
16
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
27
28
29
+end
0 commit comments