Skip to content

Instantly share code, notes, and snippets.

@mccombs mccombs/craft_db.php

Last active Aug 29, 2015
Embed
What would you like to do?
Sample Craft db file
<?php
if ($_SERVER['SERVER_NAME'] == 'local.sitename')
{
return array(
'server' => 'localhost',
'user' => 'user',
'password' => 'password',
'database' => 'database',
'tablePrefix' => 'craft',
);
} else {
return array(
'server' => 'production_db_location',
'user' => 'user',
'password' => 'password',
'database' => 'database',
'tablePrefix' => 'craft',
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.