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

Support a custom manifest vapor file #77

Merged
merged 4 commits into from
Aug 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
);
});