some cleanup to file structure and heroku run server
This commit is contained in:
+2
-2
@@ -6,9 +6,9 @@ const PORT = process.env.PORT || 8080;
|
|||||||
|
|
||||||
app.use(express.static('dist'));
|
app.use(express.static('dist'));
|
||||||
|
|
||||||
// viewed at http://localhost:8080
|
// viewed at http://localhost:8081
|
||||||
app.get('*', function(req, res) {
|
app.get('*', function(req, res) {
|
||||||
res.sendFile('index.html');
|
res.sendFile('index.html');
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('Starting server on port: ' + PORT);
|
console.log('Starting server on port: ' + PORT);
|
||||||
|
|||||||
Reference in New Issue
Block a user