From 3d1c6a4395acb160144115b3fc332d07701fce27 Mon Sep 17 00:00:00 2001 From: Daniel Covington Date: Tue, 23 Apr 2024 11:24:18 -0400 Subject: [PATCH] Change deploy setttings --- CiCd/deploy.vbs | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/CiCd/deploy.vbs b/CiCd/deploy.vbs index 6fc0f2f..03241ac 100644 --- a/CiCd/deploy.vbs +++ b/CiCd/deploy.vbs @@ -64,13 +64,23 @@ Sub CloneRepo WshShell.Exec("git config core.sparseCheckout true") Dim objFile Set objFile = fso.CreateTextFile(".git/info/sparse-checkout") - objFile.WriteLine("App/") - objFile.WriteLine("Data/arrow ne.jpg") - objFile.WriteLine("Data/Label_Report.rep") - objFile.WriteLine("Data/png-transparent-arrow-arrow-angle-triangle-black-thumbnail.jpg") - objFile.WriteLine("dist/") - objFile.WriteLine("MVC/") - objFile.WriteLine("Dependancies/") - objFile.WriteLine("index.asp") - WshShell.Exec("git pull origin master") -End Sub \ No newline at end of file + objFile.WriteLine("App/") + objFile.WriteLine("Data/arrow ne.jpg") + objFile.WriteLine("Data/Label_Report.rep") + objFile.WriteLine("Data/png-transparent-arrow-arrow-angle-triangle-black-thumbnail.jpg") + objFile.WriteLine("dist/") + objFile.WriteLine("MVC/") + objFile.WriteLine("Dependancies/") + objFile.WriteLine("index.asp") + WshShell.Exec("git pull origin master") + objFile.Close + WScript.Sleep 10000 + Set objFile = fso.OpenTextFile(DeployRoot & "test\App\app.config.asp",1) + Dim readConfigFile:readConfigFile = objFile.ReadAll + objFile.Close + Dim devToFalseSetting:devToFalseSetting = Replace(readConfigFile,"dev = true","dev = false") + Set objFile = fso.OpenTextFile(DeployRoot & "test\App\app.config.asp",2) + objFile.Write(devToFalseSetting) +End Sub + +'"F:\Development\Tracking_Kits\CiCd\test\App\app.config.asp" \ No newline at end of file