mirror of
https://github.com/AzuraCast/AzuraCast.git
synced 2024-06-14 13:16:37 +00:00
23 lines
639 B
PHP
23 lines
639 B
PHP
#!/usr/bin/env php
|
|
<?php
|
|
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT);
|
|
ini_set('display_errors', 1);
|
|
|
|
$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 [--defaults] [--http-port=] [--https-port=] [--release-channel=] [base-dir]',
|
|
new App\Installer\Command\InstallCommand($environment)
|
|
);
|
|
|
|
$console->setDefaultCommand('install', true);
|
|
$console->run();
|