Added self-updating, better docker-compose control
* 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
This commit is contained in:
		@@ -5,6 +5,16 @@ 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");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user