|
|
@@ -35,7 +35,7 @@ def deploy():
|
|
|
print("Connected successfully!")
|
|
|
|
|
|
local_model = os.environ.get('LLM_MODEL', 'llama3.2:3b')
|
|
|
- command = f"cd food_project && git reset --hard HEAD && git clean -fd && rm -f git_version.txt git_id.txt && git pull && sed -i 's/^LLM_MODEL=.*/LLM_MODEL={local_model}/' .env && docker-compose up -d --build"
|
|
|
+ command = f"cd food_project && git fetch origin main && git reset --hard origin/main && git clean -fd && rm -f git_version.txt git_id.txt && sed -i 's/^LLM_MODEL=.*/LLM_MODEL={local_model}/' .env && docker-compose up -d --build"
|
|
|
print(f"Executing: {command}")
|
|
|
|
|
|
stdin, stdout, stderr = ssh.exec_command(command)
|