Update update scripts and process files

This commit is contained in:
Dragory 2021-09-04 19:57:59 +03:00
parent 200e8ba89d
commit 6486dd7ca8
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
6 changed files with 62 additions and 11 deletions

15
update-dashboard.sh Executable file
View file

@ -0,0 +1,15 @@
#!/bin/bash
TARGET_DIR=/var/www/zeppelin.gg
# Load nvm
. ~/.nvm/nvm.sh
# Update dashboard
cd dashboard
git pull
nvm use
npm ci
npm run build
rm -r "$TARGET_DIR/*"
cp -R dist/* "$TARGET_DIR"