Added database.php config to help with auto deploys

This commit is contained in:
Karl Cordes 2015-05-31 23:40:13 +10:00
parent 68900c347a
commit b3cae84929
2 changed files with 27 additions and 1 deletions

1
.gitignore vendored
View file

@ -9,6 +9,5 @@ app/nbproject/*
app/processed_vaultmsgs/*
app/vaultmsgs/*
app/cake_eclipse_helper.php
app/config/*
app/webroot/pdf/*
app/webroot/attachments_files/*

27
app/config/database.php Normal file
View file

@ -0,0 +1,27 @@
<?php
//CakePHP is pretty awful. I was so foolish.
class DATABASE_CONFIG {
var $default = array(
'driver' => 'mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'root',
'password' => '',
'database' => 'cmc',
'prefix' => '',
);
var $test = array(
'driver' => 'mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'user',
'password' => 'password',
'database' => 'test_database_name',
'prefix' => '',
);
}