Skip to content

Commit

Permalink
🏗️ deploy prefix as var (copied from webforms)
Browse files Browse the repository at this point in the history
  • Loading branch information
vokimon committed Oct 30, 2024
1 parent 47268ca commit 18eee2e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 18eee2e

Please sign in to comment.