Skip to content

Commit

Permalink
Update config.php hardcoded env vars for tugboat testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lbailey-ucsf authored Jul 15, 2024
1 parent 3abf2f9 commit 26d39ca
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .tugboat/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
global $CFG;
$CFG = new stdClass();

$CFG->dbtype = getenv('MOODLE_DOCKER_DBTYPE');
$CFG->dbtype = 'mariadb';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'db';
$CFG->dbname = getenv('MOODLE_DOCKER_DBNAME');
$CFG->dbuser = getenv('MOODLE_DOCKER_DBUSER');
$CFG->dbpass = getenv('MOODLE_DOCKER_DBPASS');
$CFG->dbname = 'moodle';
$CFG->dbuser = 'moodle';
$CFG->dbpass = 'm@0dl3ing';
$CFG->prefix = 'm_';
$CFG->dboptions = ['dbcollation' => getenv('MOODLE_DOCKER_DBCOLLATION')];

Expand All @@ -24,7 +24,7 @@
'Encrypt' => false,
];
}

/*
if (empty($_SERVER['HTTP_HOST'])) {
$_SERVER['HTTP_HOST'] = 'localhost';
}
Expand All @@ -51,6 +51,7 @@
}
}
}
*/

$CFG->dataroot = '/var/www/moodledata';
$CFG->admin = 'admin';
Expand Down

0 comments on commit 26d39ca

Please sign in to comment.