Update .env.example for local and production database configurations, ensuring clarity on usage. Modify .gitattributes to enforce LF line endings for shell scripts. Enhance README.md with Docker and Coolify setup instructions for production deployment.
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Container health check (Coolify / Docker HEALTHCHECK).
|
||||
*/
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
|
||||
require __DIR__ . '/config.php';
|
||||
|
||||
try {
|
||||
if (!extension_loaded('pdo_pgsql')) {
|
||||
throw new RuntimeException('pdo_pgsql extension missing');
|
||||
}
|
||||
require_once __DIR__ . '/helpers.php';
|
||||
require_database();
|
||||
$response = ['status' => 'ok'];
|
||||
echo json_encode($response, JSON_UNESCAPED_UNICODE);
|
||||
} catch (Throwable $e) {
|
||||
http_response_code(503);
|
||||
$response = [
|
||||
'status' => 'error',
|
||||
'message' => $e->getMessage(),
|
||||
];
|
||||
echo json_encode($response, JSON_UNESCAPED_UNICODE);
|
||||
exit(1);
|
||||
}
|
||||
Reference in New Issue
Block a user