Skip to content
Merged
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
23 changes: 23 additions & 0 deletions .castor/context.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,29 @@ function create_default_context(): Context
);
}

#[AsContext(name: 'prod')]
function create_prod_context(): Context
{
$data = create_default_context();
$dockerComposeFiles = array_values(array_filter(
$data['docker_compose_files'],
static fn (string $file) => !str_contains($file, 'dev')
));

return create_default_context()
->withData(
[
'root_domain' => 'monologue.internal.jolicode.com',
'docker_compose_files' => $dockerComposeFiles,
],
recursive: false
)
->withEnvironment([
'APP_ENV' => 'prod',
])
;
}

#[AsContext(name: 'test')]
function create_test_context(): Context
{
Expand Down
Loading