AzuraCast/bin/installer

25 lines
633 B
Plaintext
Raw Normal View History

2021-07-08 20:03:54 +00:00
#!/usr/bin/env php
<?php
2021-07-19 05:53:45 +00:00
declare(strict_types=1);
2021-07-08 20:03:54 +00:00
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
2021-07-19 05:53:45 +00:00
ini_set('display_errors', '1');
2021-07-08 20:03:54 +00:00
$autoloader = require dirname(__DIR__) . '/vendor/autoload.php';
$environment = App\AppFactory::buildEnvironment(
[
App\Environment::BASE_DIR => dirname(__DIR__),
]
);
$console = new Silly\Application('AzuraCast installer', App\Version::FALLBACK_VERSION);
$console->command(
'install [--update] [--defaults] [--http-port=] [--https-port=] [--release-channel=] [base-dir]',
2021-07-08 20:03:54 +00:00
new App\Installer\Command\InstallCommand($environment)
);
$console->run();