Will check if there is a read_env_file.php and then run it to load .env file in /configs folder This file can hold secrets that are not to be checked into git Updated edit.js file to be eslint compatible
29 lines
735 B
PHP
Executable File
29 lines
735 B
PHP
Executable File
<?php
|
|
|
|
/********************************************************************
|
|
* AUTHOR: Clemens Schwaighofer
|
|
* CREATED: 2018/10/11
|
|
* SHORT DESCRIPTION:
|
|
* configuration file for database settings
|
|
* HISTORY:
|
|
*********************************************************************/
|
|
|
|
declare(strict_types=1);
|
|
|
|
// please be VERY carefull only to change the right side
|
|
$DB_CONFIG = [
|
|
'test' => [
|
|
'db_name' => $_ENV['DB_NAME_TEST'] ?? '',
|
|
'db_user' => $_ENV['DB_USER_TEST'] ?? '',
|
|
'db_pass' => $_ENV['DB_PASS_TEST'] ?? '',
|
|
'db_host' => $_ENV['DB_HOST_TEST'] ?? '',
|
|
'db_port' => 5432,
|
|
'db_schema' => 'public',
|
|
'db_type' => 'pgsql',
|
|
'db_encoding' => '',
|
|
'db_ssl' => 'allow' // allow, disable, require, prefer
|
|
],
|
|
];
|
|
|
|
// __END__
|