You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2019/12/29 03:58:14 UTC
[GitHub] [incubator-apisix-dashboard] jiezaizone edited a comment on issue #108: npm run build 后访问异常
jiezaizone edited a comment on issue #108: npm run build 后访问异常
URL: https://github.com/apache/incubator-apisix-dashboard/issues/108#issuecomment-569471951
> 是 `npm run build:prod` 吧
我自己不想输入prod 修改了命令。实际执行了`npm run build:prod`。
```
FROM alpine:latest AS build-stage
MAINTAINER jiezai
# create destination directory
RUN mkdir -p /usr/src/app/
WORKDIR /usr/src/app
# install nodejs
RUN apk add --no-cache --update nodejs nodejs-npm git yarn
RUN git clone https://github.com/apache/incubator-apisix-dashboard.git
WORKDIR /usr/src/app/incubator-apisix-dashboard
RUN yarn install
RUN yarn run build:prod
FROM XXX:5000/system/nginx:1.10.1 as production-stage
MAINTAINER jiezai
RUN mkdir /app
COPY --from=build-stage /usr/src/app/incubator-apisix-dashboard/dist /app
COPY nginx.conf /etc/nginx/nginx.conf
CMD ["nginx", "-g", "daemon off;"]
```
新打了镜像访问报错,本地就更新了代码试一下,果然一样的异常,你们可以试一下。
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services
Re: [GitHub] [incubator-apisix-dashboard] jiezaizone edited a comment on issue #108: npm run build 后访问异常
Posted by Zhiyuan Ju <ju...@apache.org>.
Please try this way:
Open browser then force refresh cache: Command + shift + R on Chrome based
Mac OS, Shift + F5 based on Windows I guess.
I'm out for journey these days, and will try to reproduce this issue when I
have time.
GitBox <gi...@apache.org> 于 2019年12月29日周日 11:58写道:
> jiezaizone edited a comment on issue #108: npm run build 后访问异常
> URL:
> https://github.com/apache/incubator-apisix-dashboard/issues/108#issuecomment-569471951
>
>
> > 是 `npm run build:prod` 吧
>
> 我自己不想输入prod 修改了命令。实际执行了`npm run build:prod`。
> ```
> FROM alpine:latest AS build-stage
> MAINTAINER jiezai
> # create destination directory
> RUN mkdir -p /usr/src/app/
> WORKDIR /usr/src/app
> # install nodejs
> RUN apk add --no-cache --update nodejs nodejs-npm git yarn
>
> RUN git clone https://github.com/apache/incubator-apisix-dashboard.git
> WORKDIR /usr/src/app/incubator-apisix-dashboard
> RUN yarn install
> RUN yarn run build:prod
>
> FROM XXX:5000/system/nginx:1.10.1 as production-stage
> MAINTAINER jiezai
> RUN mkdir /app
> COPY --from=build-stage /usr/src/app/incubator-apisix-dashboard/dist
> /app
> COPY nginx.conf /etc/nginx/nginx.conf
> CMD ["nginx", "-g", "daemon off;"]
>
> ```
> 新打了镜像访问报错,本地就更新了代码试一下,果然一样的异常,你们可以试一下。
>
> ----------------------------------------------------------------
> This is an automated message from the Apache Git Service.
> To respond to the message, please log on to GitHub and use the
> URL above to go to the specific comment.
>
> For queries about this service, please contact Infrastructure at:
> users@infra.apache.org
>
>
> With regards,
> Apache Git Services
>