Skip to content

Commit

Permalink
Change keys to align with code-style
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostzero committed Apr 1, 2023
1 parent 833af6b commit c91bbff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ We offer you a [GitHub Action for Bunny CLI](https://github.com/marketplace/acti
BUNNY_API_ACCESS_KEY: ${{ secrets.BUNNY_API_ACCESS_KEY }}
BUNNY_STORAGE_USERNAME: bunny-cli
BUNNY_STORAGE_PASSWORD: ${{ secrets.BUNNY_STORAGE_PASSWORD }}
BUNNY_STORAGE_PATH: some_target_edge_dir (optional)
BUNNY_PULL_ZONE_ID: 466588
BUNNY_EDGE_PATH: some_target_edge_dir
with:
args: deploy --dir=dist
```
Expand Down
6 changes: 3 additions & 3 deletions app/Commands/DeployCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ public function handle(): int

$edgePath = sprintf('/%s', config('bunny.storage.username'));

if (!empty(config('bunny.storage.edge_path'))) {
$edgePath .= '/' . config('bunny.storage.edge_path');
$this->info(sprintf('- Edge path is set to %s', $edgePath));
if (!empty(config('bunny.storage.path'))) {
$edgePath .= '/' . config('bunny.storage.path');
$this->info(sprintf('- Storage path is set to %s', $edgePath));
}

if ($this->option('dry-run')) {
Expand Down
2 changes: 1 addition & 1 deletion config/bunny.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'hostname' => env('BUNNY_STORAGE_HOSTNAME', 'storage.bunnycdn.com'),
'username' => env('BUNNY_STORAGE_USERNAME'),
'password' => env('BUNNY_STORAGE_PASSWORD'),
'edge_path' => env('BUNNY_EDGE_PATH'),
'path' => env('BUNNY_STORAGE_PATH'),
],
'pull_zone' => [
'id' => env('BUNNY_PULL_ZONE_ID'),
Expand Down

0 comments on commit c91bbff

Please sign in to comment.