ccf %!s(int64=4) %!d(string=hai) anos
pai
achega
2a6cc6c984
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      shell/container-code-update.sh

+ 1 - 0
shell/container-code-update.sh

@@ -11,5 +11,6 @@ cd /proginn-frontend && current_git_branch_latest_id=`git rev-parse HEAD`
 current_git_branch_last_id=`cat /var/www/.proginn-frontend-commit-id`
 if [[ "$current_git_branch_latest_id" != "$current_git_branch_last_id" ]]; then
     echo "$current_git_branch_latest_id" > /var/www/.proginn-frontend-commit-id
+    cd /proginn-frontend && rm -rf node_modules && npx yarn --registry=https://registry.npm.taobao.org install && npm run build_dev
     cd /proginn-frontend && pm2 reload ecosystem.config.yml
 fi