Skip to content
This repository has been archived by the owner on May 20, 2024. It is now read-only.

Commit

Permalink
Support a custom manifest vapor file (#77)
Browse files Browse the repository at this point in the history
* support a custom manifest file

* Update vapor-ui.php

* Update Cloud.php

* Update Cloud.php

Co-authored-by: Felipe Albert <felipealbertsilva04@gmail.com>
Co-authored-by: Taylor Otwell <taylor@laravel.com>
  • Loading branch information
3 people authored Aug 19, 2022
1 parent a14baaa commit 69fa2f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Cloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static function guessQueues()
return [];
}

$vapor = (new Parser)->parse(file_get_contents(base_path('vapor.yml')));
$vapor = (new Parser)->parse(file_get_contents(config('vapor-ui.manifest', base_path('vapor.yml'))));

$environment = config('vapor-ui.environment');

Expand Down
11 changes: 11 additions & 0 deletions tests/Integration/Home/Title.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,14 @@
"Vapor UI - $project - $environment"
);
});

test('content with custom manifest', function () {
File::put(base_path('deploy/production/vapor.yml'), '');

$project = $_ENV['VAPOR_PROJECT'];
$environment = $_ENV['VAPOR_ENVIRONMENT'];

$this->get('/vapor-ui')->assertSee(
"Vapor UI - $project - $environment"
);
});

0 comments on commit 69fa2f9

Please sign in to comment.