mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Update update scripts and process files
This commit is contained in:
parent
200e8ba89d
commit
6486dd7ca8
6 changed files with 62 additions and 11 deletions
15
update-dashboard.sh
Executable file
15
update-dashboard.sh
Executable 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"
|
Loading…
Add table
Add a link
Reference in a new issue