From 3efcfb7a724a9b97a01fa9e89291abb6cfc9dfe3 Mon Sep 17 00:00:00 2001 From: wulin Date: Sat, 21 Oct 2023 19:44:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E7=8E=AF=E5=A2=83=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/modules/websocket/dockerfile | 2 +- .../iot-box-websocket-api/src/main/resources/bootstrap.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/modules/websocket/dockerfile b/docker/modules/websocket/dockerfile index 68a8ac7..66f8c44 100644 --- a/docker/modules/websocket/dockerfile +++ b/docker/modules/websocket/dockerfile @@ -13,4 +13,4 @@ WORKDIR /home/qiuguo COPY ./jar/iot-box-websocket-api.jar /home/qiuguo/iot-box-websocket-api.jar # 启动网关服务 #ENTRYPOINT ["java","-jar","iot-box-websocket-api.jar"] -CMD ["sh","-c", "java -jar iot-box-websocket-api.jar --spring.profiles.active=prod"] +CMD ["sh","-c", "java -jar iot-box-websocket-api.jar --spring.profiles.active=dev"] diff --git a/iot-modules/iot-box-websocket-api/src/main/resources/bootstrap.yml b/iot-modules/iot-box-websocket-api/src/main/resources/bootstrap.yml index db57474..55312fd 100644 --- a/iot-modules/iot-box-websocket-api/src/main/resources/bootstrap.yml +++ b/iot-modules/iot-box-websocket-api/src/main/resources/bootstrap.yml @@ -1,5 +1,8 @@ server: port: 8080 spring: + profiles: + # 环境配置 + active: prod application: name: qiuguo-iot-box-websocket \ No newline at end of file