add env config
This commit is contained in:
parent
c5fa857464
commit
d68e7f45b3
2 changed files with 21 additions and 1 deletions
|
@ -6,4 +6,9 @@ use App\App;
|
|||
|
||||
require_once __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
new App('https://uuid.php.fail/')->run();
|
||||
$base = getenv('BASE_URL');
|
||||
if (!is_string($base) || $base === '') {
|
||||
$base = 'https://uuid.php.fail/';
|
||||
}
|
||||
|
||||
new App($base)->run();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue