From 3f651f0ddcf186831219375e86b8bc7ea1dcc14b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A3=AB=E5=AD=90=E2=98=80=EF=B8=8F?= <84996057@qq.com> Date: Sat, 17 Jun 2023 00:12:54 +0800 Subject: [PATCH] add --- .env | 2 ++ packages/main/src/services/WebServiceImpl.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 949b9f4..a72c74a 100644 --- a/.env +++ b/.env @@ -2,3 +2,5 @@ APP_NAME=media-downloader APP_ID=mediago.ziying.site APP_COPYRIGHT=caorushizi APP_VERSION=2.0.0-beta.4 + +SERVER_PORT=8433 diff --git a/packages/main/src/services/WebServiceImpl.ts b/packages/main/src/services/WebServiceImpl.ts index d7a9831..8de166e 100644 --- a/packages/main/src/services/WebServiceImpl.ts +++ b/packages/main/src/services/WebServiceImpl.ts @@ -36,7 +36,7 @@ export default class WebServiceImpl implements WebService { this.app.use(this.router.routes()); this.app.use(this.router.allowedMethods()); - this.app.listen(3000); + this.app.listen(process.env.SERVER_PORT); } private home = (ctx: Context) => {