Skip to content

Instantly share code, notes, and snippets.

@nickstenning
Created April 25, 2017 22:36
Show Gist options
  • Save nickstenning/d4b7839e8e8450a5b9fcdce91901b0ce to your computer and use it in GitHub Desktop.
Save nickstenning/d4b7839e8e8450a5b9fcdce91901b0ce to your computer and use it in GitHub Desktop.
diff --git a/wp-config.php b/wp-config.php
index 08cac9b0..cc45af6c 100755
--- a/wp-config.php
+++ b/wp-config.php
@@ -104,13 +104,10 @@ else:
$secretsPath = 'wp-content/uploads/private/secrets.ini';
$secrets = file_exists($secretsPath) ? parse_ini_file($secretsPath) : false;
- if ( in_array( $_ENV['PANTHEON_ENVIRONMENT'], array( 'live' ) ) && $secrets ) {
- define( 'DBI_AWS_ACCESS_KEY_ID', $secrets['dbi_aws_access_key_id'] );
- define( 'DBI_AWS_SECRET_ACCESS_KEY', $secrets['dbi_aws_secret_access_key'] );
- } else {
- define( 'DBI_AWS_ACCESS_KEY_ID', 'fakekey' );
- define( 'DBI_AWS_SECRET_ACCESS_KEY', 'fakekey' );
- }
+ define( 'DBI_AWS_ACCESS_KEY_ID', $secrets['dbi_aws_access_key_id'] );
+ define( 'DBI_AWS_SECRET_ACCESS_KEY', $secrets['dbi_aws_secret_access_key'] );
+
+ error_log('access_key=' . "'" . constant('DBI_AWS_ACCESS_KEY_ID') . "'", 0);
else:
/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment