Docker-Swarm-Loadbalancer/bin/bouncer

14 lines
380 B
Text
Raw Normal View History

2024-01-25 13:01:25 +00:00
#!/usr/bin/env php
<?php
use Bouncer\Bouncer;
define("APP_ROOT", realpath(__DIR__ . "/../"));
2024-05-19 01:21:05 +00:00
# If vendor/autoload.php does not exist, we should bomb out and scream
if (!file_exists(APP_ROOT . '/vendor/autoload.php')) {
echo "You must run composer install before running this script\n";
exit(1);
}
2024-01-25 13:01:25 +00:00
require_once APP_ROOT . '/vendor/autoload.php';
(new Bouncer())->run();