Skip to content

Commit

Permalink
adding cleardb on heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
dperrymorrow committed Jun 11, 2013
1 parent 63b5651 commit af26cc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .gitignore
@@ -1,2 +0,0 @@

application/config/database.php
Expand Up @@ -58,10 +58,12 @@
$db['development']['stricton'] = FALSE;


$db['production']['hostname'] = 'XXXX';
$db['production']['username'] = 'XXXX';
$db['production']['password'] = 'XXXX';
$db['production']['database'] = 'XXXX';
$url=parse_url(getenv("CLEARDB_DATABASE_URL"));

$db['production']['hostname'] = $url["host"];
$db['production']['username'] = $url["user"];
$db['production']['password'] = $url["pass"];
$db['production']['database'] = substr($url["path"],1);
$db['production']['dbdriver'] = 'mysql';
$db['production']['dbprefix'] = '';
$db['production']['pconnect'] = TRUE;
Expand Down

0 comments on commit af26cc1

Please sign in to comment.