Init vue and express in same container
This commit is contained in:
parent
9800337ccd
commit
484ee1e549
1 changed files with 5 additions and 0 deletions
|
|
@ -27,6 +27,11 @@ RegisterRoutes(router);
|
|||
app.use(swaggerSpecs.basePath, router);
|
||||
app.use(errorHandler);
|
||||
|
||||
app.use(express.static('static'))
|
||||
app.get('*',(req,res)=>{
|
||||
res.sendFile(`${process.cwd()}/static/index.html`)
|
||||
})
|
||||
|
||||
app.listen(PORT, "0.0.0.0", () =>
|
||||
console.log(`[APP] Application is running on http://localhost:${PORT}`),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue