Changes in port

This commit is contained in:
Daniel Rodriguez 2019-08-19 20:09:13 +02:00
parent 38b51999b8
commit 53b429ede0

View file

@ -3,8 +3,6 @@ const express = require('express');
const path = require('path'); const path = require('path');
var app = express(); var app = express();
// Start the app by listening on the default Heroku port
var port = 8080;
app.use(express.static(__dirname + '/dist')); app.use(express.static(__dirname + '/dist'));
app.use(express.static(__dirname + '/dist/assets')); app.use(express.static(__dirname + '/dist/assets'));
@ -12,7 +10,7 @@ app.get('*',function(req,res){
res.sendFile(__dirname + '/dist/index.html'); res.sendFile(__dirname + '/dist/index.html');
}); });
app.listen(port, function() app.listen(8080, function()
{ {
console.log("ok"); console.log("ok");
}); });