Removes comments
This commit is contained in:
parent
f7b75579a6
commit
88523eed34
1 changed files with 1 additions and 2 deletions
3
index.js
3
index.js
|
|
@ -3,11 +3,10 @@ import http from "http";
|
||||||
import listener from "./src/client.js";
|
import listener from "./src/client.js";
|
||||||
import { isMainProcess } from "./src/util.js";
|
import { isMainProcess } from "./src/util.js";
|
||||||
|
|
||||||
// development endpoint - use ngrok
|
|
||||||
const server = http.createServer(listener);
|
const server = http.createServer(listener);
|
||||||
if (isMainProcess(import.meta.url)) {
|
if (isMainProcess(import.meta.url)) {
|
||||||
config();
|
config();
|
||||||
const port = parseInt(process.env.HTTP_PORT || "3000");
|
const port = parseInt(process.env.HTTP_PORT || "80");
|
||||||
server.listen(port, function () {
|
server.listen(port, function () {
|
||||||
console.log(`server start at port ${port}`);
|
console.log(`server start at port ${port}`);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue