mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-19 17:00:13 +01:00
prepare heroku deployment 3
This commit is contained in:
parent
a64c595b7c
commit
08857e6ad1
5 changed files with 199 additions and 555 deletions
6
server.js
Normal file
6
server.js
Normal 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue