Refactor storage directory structure and update scripts for consistency
This commit is contained in:
26
run-server.sh
Executable file
26
run-server.sh
Executable 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
|
||||
Reference in New Issue
Block a user