From ce77c7c96014fe394f8edbfda954342f953ba25d Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 19 Jan 2025 21:06:10 -0500 Subject: [PATCH] WHAT_PART_LOCAL --- ANSIBLE/templates/A000003.yml | 2 +- app/Controllers/Home.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ANSIBLE/templates/A000003.yml b/ANSIBLE/templates/A000003.yml index 247ec21..dec9a04 100644 --- a/ANSIBLE/templates/A000003.yml +++ b/ANSIBLE/templates/A000003.yml @@ -4,7 +4,7 @@ tasks: - name: Set up docker-compose file template: - src: "WHAT_PART_FOLDER_LOCAL/docker-compose.yml" + src: "WHAT_PART_LOCAL/docker-compose.yml" dest: "DESTINATION_FOLDER" - name: docker compose up diff --git a/app/Controllers/Home.php b/app/Controllers/Home.php index 77e5b3a..0ddc4fd 100644 --- a/app/Controllers/Home.php +++ b/app/Controllers/Home.php @@ -61,7 +61,7 @@ class Home extends BaseController $template_content_processed = str_replace("WHAT_HOST_IN_USE", $productId."_SERVER", $template_content); $template_content_processed = str_replace("WHAT_PART_FOLDER", $partFolder, $template_content_processed); $template_content_processed = str_replace("DESTINATION_FOLDER", $destinationHomeFolder, $template_content_processed); - $template_content_processed = str_replace("WHAT_PART_FOLDER_LOCAL", $composer_template_path_local, $template_content_processed); // depends on the local machine + $template_content_processed = str_replace("WHAT_PART_LOCAL", $composer_template_path_local, $template_content_processed); // depends on the local machine // CREATE PROVISOINING FILE $myfile = fopen( $ansible_folder ."/".$prov_name, "w") or die("Unable to open file!"); fwrite($myfile, $template_content_processed);