From af78bc950090c4249e5d84efcebc007a79bc87cc Mon Sep 17 00:00:00 2001 From: Wendel Fabian Chinsamy Date: Thu, 16 Nov 2023 13:48:57 +0200 Subject: [PATCH] remove commented out code in the application.rb --- config/application.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/application.rb b/config/application.rb index d47a93f1..dffa9c28 100644 --- a/config/application.rb +++ b/config/application.rb @@ -21,11 +21,11 @@ # load ENV variables from container environment if json file exists # see https://github.com/phusion/baseimage-docker#envvar_dumps -# env_json_file = "/etc/container_environment.json" -# if File.exist?(env_json_file) -# env_vars = JSON.parse(File.read(env_json_file)) -# env_vars.each { |k, v| ENV[k] = v } -# end +env_json_file = "/etc/container_environment.json" +if File.exist?(env_json_file) + env_vars = JSON.parse(File.read(env_json_file)) + env_vars.each { |k, v| ENV[k] = v } +end # default values for some ENV variables ENV["APPLICATION"] ||= "levriero"