diff --git a/docker-compose.yml b/docker-compose.yml index 6b542e9035..172683254c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -122,10 +122,10 @@ services: networks: - laf_shared_network - system-client: - build: ./packages/system-client + laf-web: + build: ./packages/web volumes: - - ./packages/system-client/dist:/app + - ./packages/web/dist:/app networks: - laf_shared_network diff --git a/packages/gateway/conf.docker/system.conf b/packages/gateway/conf.docker/system.conf index d64dc45375..9271cb0830 100644 --- a/packages/gateway/conf.docker/system.conf +++ b/packages/gateway/conf.docker/system.conf @@ -13,7 +13,7 @@ server { gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript image/jpeg image/gif image/png application/json font/ttf font/otf image/svg+xml; location / { - proxy_pass http://system-client:8080/; + proxy_pass http://laf-web:8080/; } location /app-console/ { diff --git a/packages/web/.env.development b/packages/web/.env.development index 6541490a81..8e6550acb5 100644 --- a/packages/web/.env.development +++ b/packages/web/.env.development @@ -1,4 +1,6 @@ # just a flag ENV = 'development' -VITE_APP_CONSOLE_URI = 'http://localhost:9528/app-console' \ No newline at end of file +PORT = 9527 + +VITE_APP_CONSOLE_URI = 'http://localhost:9528/app-console' diff --git a/packages/web/.env.production b/packages/web/.env.production index 7aa8dd778f..bc7f583356 100644 --- a/packages/web/.env.production +++ b/packages/web/.env.production @@ -1,4 +1,4 @@ # just a flag ENV = 'production' -VITE_APP_CONSOLE_URI = '/app-console' \ No newline at end of file +VITE_APP_CONSOLE_URI = '/app-console' diff --git a/packages/web/.env.staging b/packages/web/.env.staging index 6d863e8328..a965668010 100644 --- a/packages/web/.env.staging +++ b/packages/web/.env.staging @@ -2,3 +2,5 @@ NODE_ENV = production # just a flag ENV = 'staging' + +VITE_APP_APP_CONSOLE_URI = '/app-console' diff --git a/packages/web/Dockerfile b/packages/web/Dockerfile new file mode 100644 index 0000000000..5754819858 --- /dev/null +++ b/packages/web/Dockerfile @@ -0,0 +1,6 @@ +FROM bitnami/openresty:latest + +WORKDIR /app +EXPOSE 8080 + +ADD ./dist /app/ diff --git a/packages/web/README.md b/packages/web/README.md index 12ed01f740..20cc79897e 100644 --- a/packages/web/README.md +++ b/packages/web/README.md @@ -1,87 +1,40 @@ -

- Vitesse - Opinionated Vite Starter Template -

+## laf-web -
-Live Demo -
+`laf-web` 是 Laf 开发运维控制台客户端。 -
-Lightweight version of Vitesse -
-
+## 开发 -

-English | 简体中文 - -

- -## Features - -- ⚡️ [Vue 3](https://github.com/vuejs/vue-next), [Vite 2](https://github.com/vitejs/vite), [pnpm](https://pnpm.js.org/), [ESBuild](https://github.com/evanw/esbuild) - born with fastness - -- 🗂 [File based routing](./src/pages) - -- 📦 [Components auto importing](./src/components) - -- 🎨 [UnoCSS](https://github.com/antfu/unocss) - The instant on-demand atomic CSS engine. - -- 😃 Use icons from any icon sets in [Pure CSS](https://github.com/antfu/unocss/tree/main/packages/preset-icons) - -- 🔥 Use the [new `