18 lines
448 B
Bash
Executable File
18 lines
448 B
Bash
Executable File
#!/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 -rav --delete dist/ "${HOME}/hero/var/www/$PREFIX/"
|
|
rsync -avz --delete dist/ "root@threefold.info:/root/hero/www/info/$PREFIX/"
|
|
|