Skip to content

Instantly share code, notes, and snippets.

@mccombs
Last active August 29, 2015 14:21
Show Gist options
  • Save mccombs/5e17c84743a25dafddb9 to your computer and use it in GitHub Desktop.
Save mccombs/5e17c84743a25dafddb9 to your computer and use it in GitHub Desktop.
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