Commit df77d0e7 authored by Zac Wood's avatar Zac Wood

fixed path in app.js

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