add build start scripts

This commit is contained in:
2025-08-14 14:41:35 +02:00
parent bc9aa8f8c1
commit f1cb4adcc8
97 changed files with 1029 additions and 5399 deletions

18
build.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
cd "$(dirname "$0")"
PREFIX="veda"
echo "building for folder: /$PREFIX/"
export NEXT_PUBLIC_BASE_PATH="/$PREFIX"
# mkdir -p "out"
# pnpm install --frozen-lockfile
pnpm run build
# local mirror (optional)
# rsync -rav --delete dist/ "${HOME}/hero/var/www/$PREFIX/"
# deploy to veda server
rsync -avz --delete out/ "root@veda.info:/root/hero/www/info/$PREFIX/"