fix: deployment scripts and index.ts problems
This commit is contained in:
parent
2fd544c0a7
commit
e950e7ea8e
4 changed files with 54 additions and 17 deletions
12
stage.sh
Executable file
12
stage.sh
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue