Remove phar updater

This commit is contained in:
René Preuß
2021-07-23 13:05:51 +02:00
parent 23709b9c59
commit feab09389a
4 changed files with 2269 additions and 2336 deletions

View File

@@ -14,6 +14,12 @@ To install Bunny CLI, you need to be using Composer. For more details about Comp
composer global require own3d/bunny-cli
```
If you want to update the Bunny CLI, just execute the following command:
```bash
composer global update own3d/bunny-cli
```
Bunny CLI currently only comes with a `deploy` command. With this command, you can easily synconizise your `dist` folder with your edge storage.
> **IMPORTANT**: All files in the edge storage that are **not** in your local `dist` directory will be deleted.
@@ -49,6 +55,10 @@ We offer you a [GitHub Action for Bunny CLI](https://github.com/marketplace/acti
args: deploy --dir=dist
```
## Environment Variables
## Secure your `.well-known/bunny-cli.lock` file
Bunny CLI generates a lock file, which by default is located at `.well-known/bunny-cli.lock`. This file locks the files of your project to a known state. To prevent this from being publicly accessible it is recommended to create a new edge rule in your pull zone. You can use the following example as a template:

View File

@@ -23,7 +23,6 @@
"guzzlehttp/guzzle": "^7.0",
"laminas/laminas-text": "^2.8",
"laravel-zero/framework": "^8.8",
"laravel-zero/phar-updater": "^1.0.6",
"mockery/mockery": "^1.4.3",
"pestphp/pest": "^1.3"
},

4574
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,20 +0,0 @@
<?php
use LaravelZero\Framework\Components\Updater\Strategy\GithubStrategy;
return [
/*
|--------------------------------------------------------------------------
| Self-updater Strategy
|--------------------------------------------------------------------------
|
| Here you may specify which update strategy class you wish to use when
| updating your application via the "self-update" command. This must
| be a class that implements the StrategyInterface from Humbug.
|
*/
'strategy' => GithubStrategy::class,
];