From 668a49c8267d625b0a1b114c727a47cf805ec421 Mon Sep 17 00:00:00 2001 From: timothycarambat <rambat1010@gmail.com> Date: Wed, 14 Jun 2023 10:53:27 -0700 Subject: [PATCH] update cf generation script to not crash docker deployment --- aws/cloudformation/cf_template.template | 2 +- aws/cloudformation/generate.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aws/cloudformation/cf_template.template b/aws/cloudformation/cf_template.template index 1aa2d543c..ee6996b31 100644 --- a/aws/cloudformation/cf_template.template +++ b/aws/cloudformation/cf_template.template @@ -90,7 +90,7 @@ "sudo systemctl enable docker\n", "sudo systemctl start docker\n", "sudo yum install git -y\n", - "git clone -b cloud-deploy https://github.com/Mintplex-Labs/anything-llm.git /home/ec2-user/anything-llm\n", + "git clone https://github.com/Mintplex-Labs/anything-llm.git /home/ec2-user/anything-llm\n", "cd /home/ec2-user/anything-llm/docker\n", "cat >> .env << \"END\"\n", "!SUB::USER::CONTENT!", diff --git a/aws/cloudformation/generate.mjs b/aws/cloudformation/generate.mjs index 374a9e1b1..67f753535 100644 --- a/aws/cloudformation/generate.mjs +++ b/aws/cloudformation/generate.mjs @@ -37,7 +37,7 @@ const settings = fs.readFileSync(envPath, "utf8") .replace(/^\s*\n/gm, "") .split('\n') .filter((i) => !!i) - + .map((i) => i + '\n') const templatePath = path.resolve(__dirname, `cf_template.template`); const templateString = fs.readFileSync(templatePath, "utf8"); -- GitLab