Skip to content

Commit

Permalink
Merge branch 'main' into T-4067
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhonghe committed May 22, 2024
2 parents 4bd65a5 + 1e230ec commit 1e19845
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
services:
verdaccio:
image: verdaccio/verdaccio:latest
image: verdaccio/verdaccio:5
ports:
- 4873:4873
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-pro-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
services:
verdaccio:
image: verdaccio/verdaccio:latest
image: verdaccio/verdaccio:5
ports:
- 4873:4873
steps:
Expand Down
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-bullseye as builder
FROM node:20-bullseye as builder
ARG VERDACCIO_URL=http://host.docker.internal:10104/
ARG COMMIT_HASH
ARG APPEND_PRESET_LOCAL_PLUGINS
Expand All @@ -7,10 +7,12 @@ ARG PLUGINS_DIRS

ENV PLUGINS_DIRS=${PLUGINS_DIRS}


RUN npx npm-cli-adduser --username test --password test -e test@nocobase.com -r $VERDACCIO_URL

RUN apt-get update && apt-get install -y jq
WORKDIR /tmp
COPY . /tmp
RUN npx npm-cli-adduser --username test --password test -e test@nocobase.com -r $VERDACCIO_URL
RUN cd /tmp && \
NEWVERSION="$(cat lerna.json | jq '.version' | tr -d '"').$(date +'%Y%m%d%H%M%S')" \
&& tmp=$(mktemp) \
Expand Down Expand Up @@ -41,7 +43,7 @@ RUN cd /app \
&& tar -zcf ./nocobase.tar.gz -C /app/my-nocobase-app .
FROM node:18-bullseye-slim
FROM node:20-bullseye-slim
RUN apt-get update && apt-get install -y nginx
RUN rm -rf /etc/nginx/sites-enabled/default
COPY ./docker/nocobase/nocobase.conf /etc/nginx/sites-enabled/nocobase.conf
Expand Down
8 changes: 4 additions & 4 deletions packages/core/client/src/application/WebSocketClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ export class WebSocketClient {
console.log('onclose', this.readyState, this._reconnectTimes, this.serverDown);
this.connected = false;
clearInterval(pingIntervalTimer);
if (this._reconnectTimes >= Math.min(this.reconnectAttempts, 5)) {
this.serverDown = true;
this.emit('serverDown', event);
}
// if (this._reconnectTimes >= Math.min(this.reconnectAttempts, 5)) {
// this.serverDown = true;
// this.emit('serverDown', event);
// }
};
}

Expand Down

0 comments on commit 1e19845

Please sign in to comment.