mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
16 lines
383 B
JavaScript
16 lines
383 B
JavaScript
// Imports
|
|
const express = require('express')
|
|
const serveStatic = require('serve-static')
|
|
|
|
// Port
|
|
const port = process.env.PORT || 3000
|
|
|
|
// Express Server
|
|
const app = express()
|
|
// eslint-disable-next-line node/no-path-concat
|
|
app.use(serveStatic(__dirname + '/../dist'))
|
|
app.listen(port)
|
|
|
|
// eslint-disable-next-line no-console
|
|
console.log(`http://frontend:${port} server started.`)
|