|
|
@@ -12,5 +12,5 @@ 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 delete all && pm2 start npm --name proginn-frontend -- run start_dev
|
|
|
+ cd /proginn-frontend && pm2 delete proginn-frontend && pm2 start npm --name proginn-frontend -- run start_dev
|
|
|
fi
|