Skip to content

Commit

Permalink
feat(Server): Adds logline on server address on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperstarkar committed Mar 24, 2020
1 parent 74d176d commit fe87c65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/expressHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ const path = require('path')
const app = express();
const server = require('http').Server(app);
const socketServer = require('socket.io')(server);
const SERVER_PORT = 1176

app.use( '/' , express.static(path.join(__dirname ,'..')))
server.listen(1176);
server.listen(SERVER_PORT);
logger.info(`Server started at http://localhost:${SERVER_PORT}`)

server.on('connection', () => {
app.get('/', (req: any, res: any) => {
Expand Down

0 comments on commit fe87c65

Please sign in to comment.