diff --git a/07-start-frontend.sh b/07-start-frontend.sh index a0b088b..40fd2c4 100755 --- a/07-start-frontend.sh +++ b/07-start-frontend.sh @@ -62,8 +62,8 @@ declare -A FE_CMD=( [pc]="yarn dev:web" [meetingh5]="npm run dev" [h5]="npm run dev" - [cms]="pnpm run dev -- --host 0.0.0.0 --port 8001" - [build-cms]="pnpm run dev -- --host 0.0.0.0 --port 8002" + [cms]="pnpm exec max dev --host 0.0.0.0 --port 8001" + [build-cms]="pnpm exec max dev --host 0.0.0.0 --port 8002" [build-down]="npx umi dev --host 0.0.0.0 --port 8003" ) @@ -72,8 +72,8 @@ declare -A FE_ENV=( [pc]="" [meetingh5]="" [h5]="" - [cms]="HOST=0.0.0.0 PORT=8001" - [build-cms]="HOST=0.0.0.0 PORT=8002" + [cms]="REACT_APP_ENV=dev MOCK=none UMI_ENV=dev HOST=0.0.0.0 PORT=8001" + [build-cms]="MOCK=none UMI_ENV=dev HOST=0.0.0.0 PORT=8002" [build-down]="NODE_OPTIONS=--openssl-legacy-provider HOST=0.0.0.0 PORT=8003" )