...
This commit is contained in:
16
build.sh
16
build.sh
@@ -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/"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user