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

12
stage.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
#
# Deployment script to be run remotely on push to master at https://github.com/ViossaDiskordServer/ViossaDotNet/
# Stages static content in a folder immediately for testing. run ./deploy.sh to convert main site.
# Usage: sh ./stage.sh SOURCE_DIR
#
SOURCE_DIR=$1
cd "$1"|| { echo "Can't cd 😓"; exit; }
git fetch --all && git branch "backup-$(date +'%s')" && git reset --hard origin/main && npx turbo build