Skip to content

Instantly share code, notes, and snippets.

@jonnyvaughan
Created October 9, 2015 10:39
Show Gist options
  • Save jonnyvaughan/e9fabf30145e79e046fe to your computer and use it in GitHub Desktop.
Save jonnyvaughan/e9fabf30145e79e046fe to your computer and use it in GitHub Desktop.
<?php
// ** MySQL settings - You can get this info from your web host ** //
// Totally Dev
if (preg_match('/totallydev.com/', $_SERVER['HTTP_HOST'])) {
/** The name of the database for WordPress */
define('DB_NAME', 'ycam_wordpress');
/** MySQL database username */
define('DB_USER', 'user1');
/** MySQL database password */
define('DB_PASSWORD', 'somepass');
/** MySQL hostname */
define('DB_HOST', '127.0.0.1');
define('DOMAIN_CURRENT_SITE', $_SERVER['HTTP_HOST']);
// 10 degrees dev
} else {
/** The name of the database for WordPress */
define('DB_NAME', 'ycam');
/** MySQL database username */
define('DB_USER', 'user2');
/** MySQL database password */
define('DB_PASSWORD', 'anotherpass');
/** MySQL hostname */
define('DB_HOST', '192.168.2.200');
define('DOMAIN_CURRENT_SITE', 'www.y-cam.dev');
}
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
define('WP_DEBUG', false);
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment