mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-19 03:17:04 -04:00
remove express server
This commit is contained in:
parent
8958f9b5f5
commit
2efb72240f
1 changed files with 1 additions and 13 deletions
14
index.js
14
index.js
|
@ -15,16 +15,4 @@ const manager = new ClusterManager(client, token, {
|
|||
console.log(`v2 | starting v2.`)
|
||||
await manager.run();
|
||||
console.log(`v2 | ready. took ${(Date.now() - time) / 1000}.`)
|
||||
})();
|
||||
|
||||
// TODO: if i decide that this is necessary for something else, move it to a dedicated directory
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
|
||||
app.get("*", function (request, response) {
|
||||
response.send(`🧪 v2 @ ${Date.now()}`);
|
||||
});
|
||||
|
||||
var listener = app.listen(process.env.PORT, function () {
|
||||
console.log(`v2 | web server live on port ${listener.address().port}.`);
|
||||
});
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue