-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserver.js
21 lines (19 loc) · 947 Bytes
/
server.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//==============================================================================
// ■ Server (server.js)
//------------------------------------------------------------------------------
// Server entry point.
//==============================================================================
const app = require("./app");
//------------------------------------------------------------------------------
// ● Server-Settings
//------------------------------------------------------------------------------
const host = "lab.ambratolm.com";
const port = process.env.PORT || 9090;
//------------------------------------------------------------------------------
// ● Server
//------------------------------------------------------------------------------
const server = app.listen(port, host, () => {
const url = `http://${host || "localhost"}:${port}`;
console.cls();
console.log(`[0db-example] ► Server listening on ${url}`);
});