add deploy script

This commit is contained in:
artie 2025-02-10 21:26:43 +01:00
parent 4f44628a35
commit 7b34907d71
2 changed files with 9 additions and 1 deletions

View File

@ -7,7 +7,8 @@
"dev": "bun --watch src/index.ts",
"start": "bun run src/index.ts",
"sync": "bun run src/scripts/sync.ts",
"test": "bun run src/scripts/test.ts"
"test": "bun run src/scripts/test.ts",
"deploy": "src/scripts/deploy.sh"
},
"dependencies": {
"@discordjs/core": "^2.0.1",

7
src/scripts/deploy.sh Executable file
View File

@ -0,0 +1,7 @@
ssh shironeko "
set -e
cd artemis.js
git pull
~/.bun/bin/bun install --frozen-lockfile
pm2 restart artemis
"