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