[del] env
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import dayjs from "dayjs";
|
||||
import "dayjs/locale/zh-tw";
|
||||
import dotenv from "dotenv";
|
||||
import * as path from "path";
|
||||
import { WsServer } from "tsrpc";
|
||||
import { BaseEnumerator } from "./Engine/CatanEngine/CoroutineV2/Core/BaseEnumerator";
|
||||
@@ -10,10 +11,12 @@ import { serviceProto } from './shared/protocols/serviceProto';
|
||||
|
||||
BaseEnumerator.Init();
|
||||
dayjs.locale("zh-tw")
|
||||
dotenv.config();
|
||||
|
||||
// Create the Server
|
||||
const port: number = +process.env.PORT || 3000
|
||||
export const server = new WsServer(serviceProto, {
|
||||
port: 3003,
|
||||
port: port,
|
||||
// Remove this to use binary mode (remove from the client too)
|
||||
json: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user