From ecbd3ae7490dec1ad9d99ca29bde3b19db21e4e2 Mon Sep 17 00:00:00 2001 From: chuckbutkus Date: Mon, 29 Dec 2025 16:18:02 -0500 Subject: [PATCH] Fix local dev deployments (#12198) --- enterprise/enterprise_local/README.md | 2 +- enterprise/enterprise_local/decrypt_env.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 enterprise/enterprise_local/decrypt_env.sh diff --git a/enterprise/enterprise_local/README.md b/enterprise/enterprise_local/README.md index 4d621f16a8..18dee5b144 100644 --- a/enterprise/enterprise_local/README.md +++ b/enterprise/enterprise_local/README.md @@ -50,7 +50,7 @@ First run this to retrieve Github App secrets ``` gcloud auth application-default login gcloud config set project global-432717 -local/decrypt_env.sh +enterprise_local/decrypt_env.sh /path/to/root/of/deploy/repo ``` Now run this to generate a `.env` file, which will used to run SAAS locally diff --git a/enterprise/enterprise_local/decrypt_env.sh b/enterprise/enterprise_local/decrypt_env.sh old mode 100644 new mode 100755 index e2988b4bd8..923ec0305e --- a/enterprise/enterprise_local/decrypt_env.sh +++ b/enterprise/enterprise_local/decrypt_env.sh @@ -4,12 +4,12 @@ set -euo pipefail # Check if DEPLOY_DIR argument was provided if [ $# -lt 1 ]; then echo "Usage: $0 " - echo "Example: $0 /path/to/deploy" + echo "Example: $0 /path/to/root/of/deploy/repo" exit 1 fi # Normalize path (remove trailing slash) -DEPLOY_DIR="${DEPLOY_DIR%/}" +DEPLOY_DIR="${1%/}" # Function to decrypt and rename decrypt_and_move() {