|
|
@@ -18,12 +18,3 @@ if [[ "$current_git_branch_latest_id" != "$current_git_branch_last_id" ]]; then
|
|
|
# cd /proginn-frontend && rm -rf node_modules && npx yarn --registry=https://registry.npm.taobao.org install
|
|
|
cd /proginn-frontend && pm2 reload ecosystem.config.yml
|
|
|
fi
|
|
|
-
|
|
|
-cd /proginn-child && git fetch origin $PROGINN_FRONTEND_BRANCH
|
|
|
-cd /proginn-child && git checkout -f origin/$PROGINN_FRONTEND_BRANCH
|
|
|
-cd /proginn-child && current_git_branch_latest_id_child=`git rev-parse HEAD`
|
|
|
-current_git_branch_last_id_child=`cat /var/www/.proginn-child-commit-id`
|
|
|
-if [[ "$current_git_branch_latest_id_child" != "$current_git_branch_last_id_child" ]]; then
|
|
|
- echo "$current_git_branch_latest_id_child" > /var/www/.proginn-child-commit-id
|
|
|
- cd /proginn-child && pm2 reload proginn-child
|
|
|
-fi
|