We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5bcc65 commit be0d532Copy full SHA for be0d532
test/options.php
@@ -2,6 +2,7 @@
2
// test/options.php -- HotCRP conference options for test databases
3
4
global $Opt;
5
+$Opt["dbHost"] = getenv("MYSQL_HOST") ?: "localhost";
6
$Opt["dbName"] = "hotcrp_testdb";
7
$Opt["dbPassword"] = "m5LuaN23j26g";
8
$Opt["shortName"] = "Testconf I";
@@ -16,7 +17,7 @@
16
17
$Opt["smartScoreCompare"] = true;
18
$Opt["timezone"] = "America/New_York";
19
$Opt["postfixEOL"] = "\n";
-$Opt["contactdbDsn"] = "mysql://hotcrp_testdb:m5LuaN23j26g@localhost/hotcrp_testdb_cdb";
20
+$Opt["contactdbDsn"] = "mysql://hotcrp_testdb:m5LuaN23j26g@" . $Opt["dbHost"] . "/hotcrp_testdb_cdb";
21
$Opt["obsoletePasswordInterval"] = 1;
22
$Opt["include"][] = "?test/localoptions.php";
23
$Opt["hooks"]["send_mail"] = "MailChecker::send_hook";
0 commit comments