Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 912a6ff8 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

app.listen → fin du fichier

parent 92000bad
......@@ -9,15 +9,6 @@ const helmet = require('helmet');
// PORT
const {port=8080} = process.env;
app.listen(port, () => console.log(`Listening on port ${port}...`));
// server.listen(port, hostname, () => {
// console.log(`Server running at http://${hostname}:${port}/`);
// });
app.use(express.json());
app.use(express.static(__dirname + '/public'));
//app.use('/static', express.static(__dirname + '/public'));
......@@ -80,4 +71,12 @@ app.post('/phonodrop/export', (request,response) => {
console.log("Colis reçu depuis "+requestIp.getClientIp(request));
}
console.log('La base de données contient maintenant '+Object.keys(baseDeDonnees).length+' entrées.');
})
\ No newline at end of file
})
// PORT
const {port=8080} = process.env;
app.listen(port, () => console.log(`Listening on port ${port}...`));
// server.listen(port, hostname, () => {
// console.log(`Server running at http://${hostname}:${port}/`);
// });
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment