From eb60b039fb2c69b0e237639b41736ce95c0dc727 Mon Sep 17 00:00:00 2001 From: Hakeem Abbas Date: Wed, 22 May 2024 02:18:29 +0500 Subject: [PATCH] fix gcp deployment script (#1937) Resolved an issue with installing and running Langflow. The initial installation via pip install langflow and subsequent command langflow --host 0.0.0.0 --port 7860 encountered errors. The solution involved: Upgrading pip to the latest version. Updating the system packages. Reinstalling Langflow with pip3. Adjusting the execution command to langflow run --host 0.0.0.0 --port 7860. --- scripts/gcp/deploy_langflow_gcp.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/gcp/deploy_langflow_gcp.sh b/scripts/gcp/deploy_langflow_gcp.sh index cae2d0c93..cdb8e209f 100644 --- a/scripts/gcp/deploy_langflow_gcp.sh +++ b/scripts/gcp/deploy_langflow_gcp.sh @@ -48,8 +48,10 @@ apt -y upgrade # Install Python 3 pip, Langflow, and Nginx apt -y install python3-pip -pip install langflow -langflow --host 0.0.0.0 --port 7860 +pip3 install pip -U +apt -y update +pip3 install langflow +langflow run --host 0.0.0.0 --port 7860 EOF )