Skip to content
Snippets Groups Projects
Commit 668a49c8 authored by timothycarambat's avatar timothycarambat
Browse files

update cf generation script to not crash docker deployment

parent 4dd1887b
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
"sudo systemctl enable docker\n", "sudo systemctl enable docker\n",
"sudo systemctl start docker\n", "sudo systemctl start docker\n",
"sudo yum install git -y\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", "cd /home/ec2-user/anything-llm/docker\n",
"cat >> .env << \"END\"\n", "cat >> .env << \"END\"\n",
"!SUB::USER::CONTENT!", "!SUB::USER::CONTENT!",
......
...@@ -37,7 +37,7 @@ const settings = fs.readFileSync(envPath, "utf8") ...@@ -37,7 +37,7 @@ const settings = fs.readFileSync(envPath, "utf8")
.replace(/^\s*\n/gm, "") .replace(/^\s*\n/gm, "")
.split('\n') .split('\n')
.filter((i) => !!i) .filter((i) => !!i)
.map((i) => i + '\n')
const templatePath = path.resolve(__dirname, `cf_template.template`); const templatePath = path.resolve(__dirname, `cf_template.template`);
const templateString = fs.readFileSync(templatePath, "utf8"); const templateString = fs.readFileSync(templatePath, "utf8");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment