mirror of
https://github.com/dec0dOS/zero-ui.git
synced 2025-08-19 21:03:56 -07:00
feat: es6+mods
This commit is contained in:
parent
773b64ea30
commit
19c92ed244
19 changed files with 179 additions and 245 deletions
|
@ -1,13 +1,16 @@
|
|||
#!/usr/bin/env node
|
||||
require("dotenv").config();
|
||||
import dotenv from "dotenv";
|
||||
dotenv.config();
|
||||
|
||||
/**
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
||||
var app = require("../app");
|
||||
var debug = require("debug")("zero-ui:server");
|
||||
var http = require("http");
|
||||
import app from "../app.js";
|
||||
|
||||
import debug from "debug";
|
||||
debug("zero-ui:server");
|
||||
import http from "node:http";
|
||||
|
||||
/**
|
||||
* Get port from environment and store in Express.
|
||||
|
@ -82,6 +85,6 @@ function onError(error) {
|
|||
|
||||
function onListening() {
|
||||
var addr = server.address();
|
||||
var bind = typeof addr === "string" ? "pipe " + addr : "port " + addr.port;
|
||||
var bind = typeof addr === "string" ? "pipe " + addr : "port " + addr?.port;
|
||||
debug("Listening on " + bind);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue