Skip to content

Commit 381143a

Browse files
committedMay 3, 2023
Fixed coloring issues and implemented production detection
1 parent 2639037 commit 381143a

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed
 

‎.env.defaults

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ RDB_HOST=localhost
22
RDB_PORT=28015
33
RDB_USER=
44
RDB_PASS=
5+
NODE_ENV=development

‎Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ WORKDIR /app
1616
COPY --from=0 node_modules/ ./node_modules/
1717
COPY dist/ .env.schema ./
1818

19+
# set the node environment, used by things like logging
20+
ENV NODE_ENV=production
21+
1922
# standard server port for documentation purposes
2023
EXPOSE 25565/tcp
2124
EXPOSE 25575/tcp

‎ava.config.mjs

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ export default {
55
"require": [
66
"ts-node/register/transpile-only"
77
],
8-
"verbose": true
8+
"verbose": true,
9+
"environmentVariables": {
10+
"NODE_ENV": "test"
11+
}
912
};

‎index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Server as TCPServer } from "net";
22
import * as crypto from "crypto";
3-
import "colors";
43

54
import { Settings, State, MinecraftConfigs } from "./src/Configuration";
65
import { Database } from "./src/Database";

0 commit comments

Comments
 (0)
Please sign in to comment.