From e7554c31006915086fefe9de0632bd0f95dc4f63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Fri, 29 May 2026 16:56:09 +0200 Subject: [PATCH] Add prod castor env --- .castor/context.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.castor/context.php b/.castor/context.php index bfd7a46..2241317 100644 --- a/.castor/context.php +++ b/.castor/context.php @@ -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 {