From 8fa5893b49ce179fcb8589a6c84d1e9cc78bbcfd Mon Sep 17 00:00:00 2001 From: Jonny McCullagh Date: Fri, 30 Sep 2022 11:43:42 +0100 Subject: [PATCH 1/2] AAS enable app service storage --- hosting/single/runner.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/hosting/single/runner.sh b/hosting/single/runner.sh index cf82e6701b..151ee7026d 100644 --- a/hosting/single/runner.sh +++ b/hosting/single/runner.sh @@ -19,6 +19,7 @@ declare -a DOCKER_VARS=("APP_PORT" "APPS_URL" "ARCHITECTURE" "BUDIBASE_ENVIRONME # Azure App Service customisations if [[ "${TARGETBUILD}" = "aas" ]]; then DATA_DIR=/home + WEBSITES_ENABLE_APP_SERVICE_STORAGE=true /etc/init.d/ssh start else DATA_DIR=${DATA_DIR:-/data} From ad70bd5a0b7c0c96c72adb8affcdb39ae178b0e0 Mon Sep 17 00:00:00 2001 From: Jonny McCullagh Date: Fri, 30 Sep 2022 11:47:01 +0100 Subject: [PATCH 2/2] AAS enable app service storage --- hosting/scripts/build-target-paths.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/hosting/scripts/build-target-paths.sh b/hosting/scripts/build-target-paths.sh index c974d9a304..67e1765ca8 100644 --- a/hosting/scripts/build-target-paths.sh +++ b/hosting/scripts/build-target-paths.sh @@ -4,6 +4,7 @@ echo ${TARGETBUILD} > /buildtarget.txt if [[ "${TARGETBUILD}" = "aas" ]]; then # Azure AppService uses /home for persisent data & SSH on port 2222 DATA_DIR=/home + WEBSITES_ENABLE_APP_SERVICE_STORAGE=true mkdir -p $DATA_DIR/{search,minio,couch} mkdir -p $DATA_DIR/couch/{dbs,views} chown -R couchdb:couchdb $DATA_DIR/couch/