Hi, I think this is a simple question but I'm not too sure. Let's say we have this code// server.js ‘use strict’; const express = require(‘express’); const app = express(); app.use(‘/static’, express.static(‘public’)); app.get(‘/’, (req, res) => { res.sendFile(__dirname + ‘/index.html’); }); const server = app.listen(9000, () => { let port = server.address().port; console.log(`Server running at http://localhost:${port}`); }); I was wondering where would files being sent like "/index.html" or "app.js" be stored when this application goes live?
Submitted January 04, 2016 at 05:28AM by imgurceo
No comments:
Post a Comment