Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //This file pulls in data for WP and is included in the wp-config.php file within help-advice
- /*
- * Base paths
- */
- define('APP_ROOT_DIR', dirname(__DIR__));
- // $dotenv = new Dotenv\Dotenv(APP_ROOT_DIR);
- // $dotenv->load();
- // this one above works but causes this file to run twice causing errors, the one below errors
- // if (file_exists(APP_ROOT_DIR . '/.env')) {
- // Dotenv\Dotenv::load(APP_ROOT_DIR);
- // }
- define('APP_PUBLIC_DIR', APP_ROOT_DIR . '/public/help-advice');
- define('APP_STORAGE_DIR', APP_ROOT_DIR . '/storage');
- define('APP_LOG_DIR', APP_STORAGE_DIR . '/logs');
- // ** MySQL settings - You can get this info from your web host ** //
- /** The name of the database for WordPress */
- define('DB_NAME', 'redacted');
- /** MySQL database username */
- define('DB_USER', 'redacted');
- /** MySQL database password */
- define('DB_PASSWORD', 'redacted');
- /** MySQL hostname */
- define('DB_HOST', '127.0.0.1');
- /** Database Charset to use in creating database tables. */
- define('DB_CHARSET', 'utf8mb4');
- /** The Database Collate type. Don't change this if in doubt. */
- define('DB_COLLATE', '');
- /**#@+
- * Authentication Unique Keys and Salts.
- *
- * Change these to different unique phrases!
- * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
- * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
- *
- * @since 2.6.0
- */
- define('AUTH_KEY', 'redacted');
- define('SECURE_AUTH_KEY', 'redacted');
- define('LOGGED_IN_KEY', 'redacted');
- define('NONCE_KEY', 'redacted');
- define('AUTH_SALT', 'redacted');
- define('SECURE_AUTH_SALT', 'redacted');
- define('LOGGED_IN_SALT', 'redacted');
- define('NONCE_SALT', 'redacted');
- /*
- * Debugging/errors
- */
- define('APP_DEBUG', (boolean) getenv('APP_DEBUG'));
- // Always log errors
- ini_set('log_errors', 1);
- ini_set('error_log', APP_LOG_DIR . '/wp_debug.log');
- define('WP_DEBUG', true);
- define('WP_DEBUG_LOG', false);
- define('WP_DEBUG_DISPLAY', APP_DEBUG);
- define('SCRIPT_DEBUG', APP_DEBUG);
- /*
- * URLs
- */
- define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'].'/help-advice/wp');
- define('WP_HOME', 'http://' . $_SERVER['HTTP_HOST'].'/help-advice');
- /*
- * Custom Content Directory (/public/help-advice/app)
- */
- define('CONTENT_DIR', '/app');
- define('WP_CONTENT_DIR', APP_PUBLIC_DIR . CONTENT_DIR);
- define('WP_CONTENT_URL', WP_HOME . CONTENT_DIR);
- //google analytics
- define('GA_PROPERTY_ID',getenv('GA_PROPERTY_ID'));
- /**#@-*/
- /**
- * WordPress Database Table prefix.
- *
- * You can have multiple installations in one database if you give each
- * a unique prefix. Only numbers, letters, and underscores please!
- */
- $table_prefix = 'wp_';
- /* That's all, stop editing! Happy blogging. */
- /** Absolute path to the WordPress directory. */
- if ( !defined('ABSPATH') )
- define('ABSPATH', dirname(__FILE__) . '/../public/help-advice/wp/');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement