Spaces:
Build error
Build error
server js 1.5
Browse files
mocos.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
| 1 |
import * as http from "http";
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
server.listen(port, host, () => {
|
| 6 |
-
console.log(`Server is running on http://${host}:${port}`);
|
| 7 |
});
|
|
|
|
| 1 |
import * as http from "http";
|
| 2 |
+
const server = http.createServer();
|
| 3 |
+
const PORT = 7860;
|
| 4 |
+
const HOST = "chartmand-testing-area.hf.space";
|
| 5 |
|
| 6 |
+
server.listen(PORT, HOST, () => {
|
| 7 |
+
console.log(`Server is running on http://${HOST}:${PORT}`);
|
|
|
|
|
|
|
| 8 |
});
|