From 18eee2ea50a88fa8b2faf99c148d81144e9603b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Garc=C3=ADa=20Garz=C3=B3n?= Date: Wed, 30 Oct 2024 20:06:09 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=EF=B8=8F=20deploy=20prefix=20as=20?= =?UTF-8?q?var=20(copied=20from=20webforms)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index d84b3b3..768cc04 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -59,11 +59,12 @@ deploy_server=$DEPLOYMENT_HOST deploy_path=$DEPLOYMENT_PATH port="$DEPLOYMENT_PORT" user="$DEPLOYMENT_USER" +deploy_prefix="${DEPLOYMENT_PREFIX:-build}" today=$(date +"%Y-%m-%d_%H%M%S") -version_dir="opendata-ui-$today" +version_dir="$deploy_prefix-$today" dest_dir="$deploy_path/$version_dir" -app_dir="$deploy_path/opendata-ui" +app_dir="$deploy_path/$deploy_prefix" function build () { log_message "INFO" "Building project $build"