fix: remove --oauth command from azurite service in compose.yaml and enhance error handling in run-server.sh
This commit is contained in:
@@ -2,8 +2,6 @@ services:
|
|||||||
azurite:
|
azurite:
|
||||||
image: azurite:latest
|
image: azurite:latest
|
||||||
container_name: azurite
|
container_name: azurite
|
||||||
command:
|
|
||||||
- --oauth
|
|
||||||
ports:
|
ports:
|
||||||
- "443:443"
|
- "443:443"
|
||||||
env_file:
|
env_file:
|
||||||
|
|||||||
@@ -3,6 +3,11 @@
|
|||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
AZURITE_DIR="${AZURITE_DIR:-$SCRIPT_DIR}"
|
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
|
if [[ -z "$AZURITE_ACCOUNTS" && -f "$AZURITE_DIR/accounts.env" ]]; then
|
||||||
set -a
|
set -a
|
||||||
source "$AZURITE_DIR/accounts.env"
|
source "$AZURITE_DIR/accounts.env"
|
||||||
|
|||||||
Reference in New Issue
Block a user