Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Fix local dev deployments (#12198)

chuckbutkusecbd3ae7490d
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 <DEPLOY_DIR>"
- 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() {