Commit df77d0e7 authored by Zac Wood's avatar Zac Wood

fixed path in app.js

parent cabb8c32
var path = require("path"); var path = require('path');
var express = require("express"); var express = require('express');
var DIST_DIR = __dirname; var DIST_DIR = path.join(__dirname, 'dist');
var PORT = 3000; var PORT = 8080;
var app = express(); var app = express();
//Serving the files on the dist folder //Serving the files on the dist folder
app.use(express.static(DIST_DIR)); app.use(express.static(DIST_DIR));
//Send index.html when the user access the web //Send index.html when the user access the web
app.get("*", function (req, res) { app.get('*', function(req, res) {
res.sendFile(path.join(DIST_DIR, "index.html")); res.sendFile(path.join(DIST_DIR, 'index.html'));
}); });
app.listen(PORT); app.listen(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