Wrap app
This commit is contained in:
parent
2e12f90b7f
commit
a7de236f3f
540 changed files with 65753 additions and 11694 deletions
18
index.js
Normal file
18
index.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
//Install express server
|
||||
const express = require('express');
|
||||
const path = require('path');
|
||||
|
||||
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/assets'));
|
||||
app.get('*',function(req,res){
|
||||
res.sendFile(__dirname + '/dist/index.html');
|
||||
});
|
||||
|
||||
app.listen(port, function()
|
||||
{
|
||||
console.log("ok");
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue