mirror of
https://github.com/sergeyyarkov/asu_tools_service.git
synced 2026-10-11 02:19:09 +03:00
env port
This commit is contained in:
parent
37269afab1
commit
dc951eda61
@ -3,3 +3,5 @@ MSSQL_PASSWORD=""
|
||||
MSSQL_DB=""
|
||||
MSSQL_HOST="localhost"
|
||||
MSSQL_PORT="1433"
|
||||
REPORT_CONCURRENT_PARSE_CLIENTS="3"
|
||||
PORT="3000"
|
||||
2
index.js
2
index.js
@ -4,7 +4,7 @@ import { reportsHandlers } from "./handlers/index.js";
|
||||
import packageJson from "./package.json" with { type: "json" };
|
||||
import db from "./db.js";
|
||||
|
||||
const SERVER_PORT = 3000;
|
||||
const SERVER_PORT = Number.parseInt(`${process.env.PORT || "3000"}`, 10);
|
||||
|
||||
/** @type {Map<string, import("./http-server/types/http-server.js").HttpContext>} */
|
||||
export const clients = new Map();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user