fix: deployment scripts and index.ts problems

This commit is contained in:
nikomiko 2026-02-05 13:46:51 -05:00 committed by Sheldon Cooper
parent 2fd544c0a7
commit e950e7ea8e
4 changed files with 54 additions and 17 deletions

View file

@ -3,11 +3,14 @@
#
# Deployment script to be run remotely on push to master at https://github.com/ViossaDiskordServer/ViossaDotNet/
#
# Usage: sh ./deploy.sh SOURCE_DIR STATIC_DIRECTORY
# Usage: sh ./deploy.sh SOURCE_DIR STATIC_DIR BACKEND_DIR
#
pwd
cd $1/apps/vdn-static/ || exit
SOURCE_DIR=$1
STATIC_DIR=$2
BACKEND_DIR=$3
npx turbo build \
&& cp -r ./dist/* $2
pwd
cp -r $SOURCE_DIR/apps/vdn-static/dist/* "$STATIC_DIR" || { echo "Can't copy static dist 😓 - code $?"; exit; }
cp -r $SOURCE_DIR/apps/vdb-backend/dist/* "$BACKEND_DIR" || { echo "Can't copy backend dist 😓 - code $?"; exit; }