Advertisement
piffy

Lightning server.js

Sep 14th, 2022
678
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var express = require('express');
  2. var app = express();
  3. var port = process.env.PORT || 8080;
  4.  
  5. // Distribuzione dei file statici dalla cartella
  6. app.use(express.static(__dirname + '/public'));
  7.  
  8. console.log('In attesa su: http://localhost:' + port);
  9. app.listen(port);
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement