Skip to content

Commit 1a8b01c

Browse files
authored
Use relative path to config.env (#34)
1 parent 71af7f3 commit 1a8b01c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/stack/deploy/deployment_create.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,9 @@ def create_operation(deployment_command_context, parsed_spec: Spec | MergedSpec,
554554
services = parsed_pod_file["services"]
555555
for service_name in services:
556556
service_info = services[service_name]
557-
shared_cfg_file = os.path.join(deployment_dir, constants.config_file_name)
557+
shared_cfg_file = os.path.join(
558+
"../" * len(destination_compose_dir.relative_to(deployment_dir_path).parts), constants.config_file_name
559+
)
558560
if "env_file" in service_info:
559561
env_files = service_info["env_file"]
560562
if isinstance(env_files, list):

0 commit comments

Comments
 (0)