prepare heroku deployment 3

This commit is contained in:
Zuhdan Ubay 2020-05-18 12:34:48 +07:00
parent a64c595b7c
commit 08857e6ad1
5 changed files with 199 additions and 555 deletions

6
server.js Normal file
View file

@ -0,0 +1,6 @@
app.use(express.static('./dist/ngx-admin'));
app.get('/*', function (req, res) {
res.sendFile('index.html', { root: 'dist/ngx-admin/' }
);
});
app.listen(process.env.PORT || 8080);