path and port messages
This commit is contained in:
parent
5ada6995dd
commit
2245199434
3
index.js
3
index.js
@ -4,6 +4,7 @@ const express = require('express');
|
||||
|
||||
const app = express();
|
||||
const clientPath = __dirname+'/../html';
|
||||
console.log('Serving static from ' + clientPath);
|
||||
app.use(express.static(clientPath));
|
||||
const server = http.createServer(app);
|
||||
|
||||
@ -20,5 +21,5 @@ server.on('close', () => {
|
||||
});
|
||||
|
||||
server.listen(3000, () => {
|
||||
console.log("Server running ...")
|
||||
console.log('Server running on port 3000');
|
||||
});
|
Loading…
Reference in New Issue
Block a user