prepare intranet for first Dokploy deployment
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
if (!function_exists('intranet_env')) {
|
||||
function intranet_env(string $name, ?string $default = null): string
|
||||
{
|
||||
$value = getenv($name);
|
||||
if ($value === false || $value === '') {
|
||||
if ($default !== null) {
|
||||
return $default;
|
||||
}
|
||||
throw new RuntimeException("Missing required environment variable: {$name}");
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user