Skip to content

Commit

Permalink
Merge pull request #605 from Crown-Commercial-Service/remove-gpaas-co…
Browse files Browse the repository at this point in the history
…nfig

Remove code relating to GPaaS as we no longer use this platform anymore
  • Loading branch information
tim-s-ccs authored Jan 16, 2024
2 parents 7f70e1e + e8ebb9f commit 6544c9c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion .cfignore

This file was deleted.

14 changes: 0 additions & 14 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6544c9c

Please sign in to comment.