chanjs 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -2,7 +2,6 @@ import "./global/index.js";
|
|
2
2
|
import path from "path";
|
3
3
|
import fs from "fs";
|
4
4
|
import express from "express";
|
5
|
-
|
6
5
|
import { Controller, Service } from "./core/index.js";
|
7
6
|
import {
|
8
7
|
log,
|
@@ -166,7 +165,7 @@ class Chan {
|
|
166
165
|
}
|
167
166
|
|
168
167
|
run(cb) {
|
169
|
-
const port = Chan.config.
|
168
|
+
const port = Chan.config.PORT || "81";
|
170
169
|
this.app.listen(port, () => {
|
171
170
|
cb ? cb(port) : console.log(`Server is running on port ${port}`);
|
172
171
|
});
|