[split-upload 4/6] f2fd4fa backup via proxy
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# --- Recovery: clean home-dir pollution from failed first attempt ---
|
||||
cd
|
||||
ls -la dist dist.bak.0802 2>/dev/null
|
||||
rm -rf dist dist.bak.0802
|
||||
|
||||
# --- Deploy at the REAL path (server layout: /opt/wecom-it-desk/frontend-agent, NO src/) ---
|
||||
cd /opt/wecom-it-desk/frontend-agent
|
||||
mv dist dist.bak.0802
|
||||
mkdir dist
|
||||
tar -xzf /tmp/frontend-agent-dist-0802.tar.gz -C dist --strip-components=1
|
||||
ls dist | head
|
||||
|
||||
# --- Full restart nginx (bind mount dentry cache invalidation) ---
|
||||
docker restart wecom_it_nginx
|
||||
|
||||
# --- Verify: container + HTTP 200 + NEW bundle hash ---
|
||||
sleep 6
|
||||
docker ps --filter name=wecom_it_nginx
|
||||
curl -s -o /dev/null -w 'itagent_http=%{http_code}\n' http://127.0.0.1/itagent/
|
||||
curl -s http://127.0.0.1/itagent/index.html | grep -o 'assets/[^"]*AiAssistantPanel[^"]*' | head -1
|
||||
Reference in New Issue
Block a user