From 8d967d7ad761d12c26d65c335a704cf91ba3c63c Mon Sep 17 00:00:00 2001 From: Slawomir Koszewski Date: Tue, 24 Mar 2026 11:29:12 +0100 Subject: [PATCH] fix: remove --oauth command from azurite service in compose.yaml and enhance error handling in run-server.sh --- compose.yaml | 2 -- run-server.sh | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index c9583a8..3516f5e 100644 --- a/compose.yaml +++ b/compose.yaml @@ -2,8 +2,6 @@ services: azurite: image: azurite:latest container_name: azurite - command: - - --oauth ports: - "443:443" env_file: diff --git a/run-server.sh b/run-server.sh index 92c10b9..57e2120 100755 --- a/run-server.sh +++ b/run-server.sh @@ -3,6 +3,11 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" AZURITE_DIR="${AZURITE_DIR:-$SCRIPT_DIR}" +if ! mkdir -p "$AZURITE_DIR/storage"; then + echo "ERROR: Failed to create storage directory at $AZURITE_DIR/storage. Please ensure the path is correct and writable." + exit 1 +fi + if [[ -z "$AZURITE_ACCOUNTS" && -f "$AZURITE_DIR/accounts.env" ]]; then set -a source "$AZURITE_DIR/accounts.env"