Skip to content

Commit e77d2fd

Browse files
committed
Add WIP notes to db-credentials.
1 parent ca230f4 commit e77d2fd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

db-credentials

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
// See db-login.sh for a usage pattern that preserves special char escaping for DB_PASS.
77
// Ref: http://stackoverflow.com/questions/16320858
88

9-
$dir = dirname(dirname(__FILE__));
9+
// DIR="$( cd -P "$( dirname "$0" )"/.. >/dev/null 2>&1 && pwd )"
10+
// BIN_DIR="$DIR/bin"
11+
12+
$dir = dirname(dirname(__FILE__)); //@TODO: Needs to be relative, otherwise we get an attempt to load `project_root/Vendor/loadsys/Config/database.php` because this actual file is composer-installed and not actuall in `/bin`.
1013
$dbConfigFile = $dir . '/Config/database.php';
1114
include $dbConfigFile;
1215
$db = new DATABASE_CONFIG();

0 commit comments

Comments
 (0)