This commit is contained in:
2025-07-30 12:23:43 +02:00
parent 84f8d956fc
commit e611e77128
2 changed files with 19 additions and 4 deletions

View File

@@ -1,5 +1,17 @@
#!/bin/bash
cd "$(dirname "$0")"
PREFIX="threefoldgalaxy"
# echo "Building without prefix"
# export VITE_APP_BASE_URL=""
# pnpm run build
# rsync -avz --delete dist/ "root@threefold.info:/root/hero/www/info/$PREFIX/"
echo "Building with prefix: /$PREFIX/"
export VITE_APP_BASE_URL="/$PREFIX/"
pnpm run build
rsync -avz --delete dist/ root@threefold.info:/root/hero/www/info/threefoldgalaxy/
rsync -rav --delete dist/ ${HOME}/hero/var/www/threefoldgalaxy/
rsync -rav --delete dist/ "${HOME}/hero/var/www/$PREFIX/"
rsync -avz --delete dist/ "root@threefold.info:/root/hero/www/info/$PREFIX/"