Christopher Vagnetoft
6c422eafe6
* Added --self-update to check for and download new versions of the phar * Added --only option which accepts a comma-separated list of services to pass to docker-compose pull/up * Added --updated option to only pass the updated services to docker-compose pull/up
25 lines
625 B
PHP
Executable File
25 lines
625 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
|
|
require_once __DIR__."/../vendor/autoload.php";
|
|
|
|
if (file_exists(__DIR__."/../src/version.php")) {
|
|
require_once __DIR__."/../src/version.php";
|
|
if (PHAR::running()) {
|
|
require_once __DIR__."/../src/swup.php";
|
|
SWUP::register([
|
|
'url' => "https://files.noccylabs.info/.repo",
|
|
'channel' => 'beta',
|
|
'package' => 'fresh',
|
|
'version' => APP_VERSION,
|
|
'phar' => 'fresh.phar'
|
|
]);
|
|
}
|
|
} else {
|
|
define("APP_VERSION", "DEV");
|
|
define("BUILD_DATE", "src");
|
|
}
|
|
|
|
$r = new NoccyLabs\FreshDocker\Refresher();
|
|
$r->run();
|