Refactor storage directory structure and update scripts for consistency

This commit is contained in:
2026-02-26 19:50:13 +01:00
parent 27fb1a6211
commit 1aa97dc00b
5 changed files with 33 additions and 6 deletions

26
run-server.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/usr/bin/env bash
AZURITE_DIR="storage"
if [[ ! -d "$AZURITE_DIR" ]]; then
echo "No accounts found"
exit 0
fi
if ! command -v azurite &> /dev/null; then
echo "Azurite is not installed. Please install it with 'npm install -g azurite'"
exit 1
fi
AZURITE_ACCOUNTS_FILE="$AZURITE_DIR/accounts.env"
set -a
. $AZURITE_ACCOUNTS_FILE
set +a
azurite \
--disableTelemetry \
--location "$AZURITE_DIR" \
--key "$AZURITE_DIR/server_key.pem" \
--cert "$AZURITE_DIR/server_cert.pem" \
--blobHost 0.0.0.0 \
--blobPort 443