From f9b51e025ec6c142be6bf2191821fc1247cdbbec Mon Sep 17 00:00:00 2001 From: Simon Kelly Date: Thu, 21 Sep 2023 12:08:25 +0200 Subject: [PATCH] add comment to .env.erb file --- deploy/.env.erb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deploy/.env.erb b/deploy/.env.erb index 13a39216..815ddac1 100644 --- a/deploy/.env.erb +++ b/deploy/.env.erb @@ -1,3 +1,8 @@ +<%# +This file is used by Kamal to generate the `deploy/.env` file when running `kamal envify` +It is a Ruby 'ERB' template, so you can use Ruby code in it. +See https://fireapp.kkbox.com/doc/tutorial_2.html for more information. +%> <% `op signin --account dimagi.1password.com --raw` %> <% if $?.exitstatus == 0 %> <% vars = YAML.load(`op item get --vault "CommCare Connect" "Connect Secrets" --fields type=string,type=concealed`) %> @@ -5,4 +10,4 @@ <%= var['Label'] %>=<%= var['Value'].join(',') %> <% else %><%= var['Label'] %>=<%= var['Value'] %> <% end %><% end %><% end %> -<% else raise ArgumentError, "Error getting values from 1Password" end %> +<% else raise ArgumentError, "Error getting values from 1Password. Try sign in." end %>