mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
25 lines
408 B
Bash
25 lines
408 B
Bash
#!/usr/bin/env bash
|
|
|
|
ShellDir=${JD_DIR:-$(cd $(dirname $0); pwd)}
|
|
|
|
echo -e "更新shell...\n"
|
|
cd ${ShellDir}
|
|
git fetch --all
|
|
git stash
|
|
git pull
|
|
git stash pop
|
|
git reset --mixed
|
|
echo -e "更新shell完成...\n"
|
|
|
|
echo -e "重新build...\n"
|
|
yarn install
|
|
yarn build
|
|
yarn build-back
|
|
echo -e "重新build完成...\n"
|
|
|
|
echo -e "重启服务...\n"
|
|
|
|
pm2 restart panel
|
|
nginx -s reload
|
|
|
|
echo -e "重启服务完成...\n" |