mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
- frontend server runs on port 3000 by default - frontend production docker build successfully runs & builds - frontend production docker build is no longer reachable from the outside - moved server.js in subfolder run/
15 lines
335 B
JavaScript
15 lines
335 B
JavaScript
// Imports
|
|
const express = require('express')
|
|
const serveStatic = require('serve-static')
|
|
|
|
// Port
|
|
const port = process.env.PORT || 3000
|
|
|
|
// Express Server
|
|
const app = express()
|
|
app.use(serveStatic(__dirname + '/../dist'))
|
|
app.listen(port)
|
|
|
|
// eslint-disable-next-line no-console
|
|
console.log(`http://frontend:${port} server started.`)
|