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 c67e56e5 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

modif indexjs app.listen(port)

parent 8b11eff3
......@@ -6,6 +6,10 @@ const requestIp = require('request-ip');
const compression = require('compression');
const helmet = require('helmet');
// PORT
const port = 6000;
app.listen(port, () => console.log(`Listening on port ${port}...`));
app.use(express.json());
app.use(express.static('public'));
app.use(compression()); // Compress all routes
......@@ -68,8 +72,3 @@ app.post('/phonodrop/export', (request,response) => {
}
console.log('La base de données contient maintenant '+Object.keys(baseDeDonnees).length+' entrées.');
})
\ No newline at end of file
// PORT
const port = 6000;
app.listen(port, () => console.log(`Listening on port ${port}...`));
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