From e8ebb9f35b1e178df592454a3e3c6f1b5ad0cf48 Mon Sep 17 00:00:00 2001 From: tim-s-ccs Date: Thu, 7 Dec 2023 11:27:22 +0000 Subject: [PATCH] Remove code relating to GPaaS as we no longer use this platform anymore --- .cfignore | 1 - config/application.rb | 14 -------------- 2 files changed, 15 deletions(-) delete mode 120000 .cfignore diff --git a/.cfignore b/.cfignore deleted file mode 120000 index 3e4e48b0..00000000 --- a/.cfignore +++ /dev/null @@ -1 +0,0 @@ -.gitignore \ No newline at end of file diff --git a/config/application.rb b/config/application.rb index 206a2536..afbc114d 100644 --- a/config/application.rb +++ b/config/application.rb @@ -40,20 +40,6 @@ class Application < Rails::Application # the framework and any gems in your application. config.before_configuration do - begin - vcap_services = JSON.parse(ENV.fetch('VCAP_SERVICES', nil)) - ENV['CCS_DEFAULT_DB_HOST'] = vcap_services['postgres'][0]['credentials']['host'].to_s - ENV['CCS_DEFAULT_DB_PORT'] = vcap_services['postgres'][0]['credentials']['port'].to_s - ENV['CCS_DEFAULT_DB_NAME'] = vcap_services['postgres'][0]['credentials']['name'].to_s - ENV['CCS_DEFAULT_DB_USER'] = vcap_services['postgres'][0]['credentials']['username'].to_s - ENV['CCS_DEFAULT_DB_PASSWORD'] = vcap_services['postgres'][0]['credentials']['password'].to_s - - vcap_application = JSON.parse(ENV.fetch('VCAP_APPLICATION', nil)) - ENV['ALLOWED_HOST_DOMAINS'] = vcap_application['application_uris'].join(',').to_s - rescue StandardError - # Rails.logger.debug e - end - config.exceptions_app = routes end end