Add Heroku config

This commit is contained in:
Andrew Trieu
2024-02-26 17:44:39 +02:00
parent d4c799ae8f
commit 9becf8117b

View File

@@ -1,8 +1,12 @@
<?php <?php
$hostname = "localhost:3200"; $cleardb_url = parse_url(getenv("CLEARDB_DATABASE_URL"));
$username = "root"; $hostname = $cleardb_url["host"];
$password = ""; $username = $cleardb_url["user"];
$dbname = "chatline"; $password = $cleardb_url["pass"];
$dbname = substr($cleardb_url["path"], 1);
$active_group = 'default';
$query_builder = TRUE;
$conn = mysqli_connect($hostname, $username, $password, $dbname); $conn = mysqli_connect($hostname, $username, $password, $dbname);
if (!$conn) { if (!$conn) {