Update the admin title across the login page, header, welcome page and document title. Replace the favicon (64x64) and header logo (192x192) with the 糖果短剧 icon. Also picks up the deploy path fix in prod_build.sh (/server/tangguo). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
11 lines
528 B
Bash
Executable File
11 lines
528 B
Bash
Executable File
# sh 执行打包到正式服上
|
|
set -e
|
|
npm run build
|
|
test -f dist/index.html
|
|
rm -f dist.zip
|
|
zip -q -r dist.zip dist
|
|
scp dist.zip root@172.104.39.32:/tmp/dist.zip
|
|
# 先解压并校验,成功后再替换线上目录,避免失败时清空线上
|
|
ssh root@172.104.39.32 "set -e; rm -rf /tmp/extract && unzip -q /tmp/dist.zip -d /tmp/extract && test -f /tmp/extract/dist/index.html && cd /server/tangguo/webadmin/dist/ && rm -rf ./* && mv /tmp/extract/dist/* . && rm -rf /tmp/extract /tmp/dist.zip && echo DEPLOY_OK"
|
|
rm dist.zip
|