2023-09-21 16:18:23 -05:00
|
|
|
const express = require('express'),
|
2023-09-21 22:10:40 -05:00
|
|
|
path = require('path')
|
2023-09-21 16:18:23 -05:00
|
|
|
|
|
|
|
var app = express()
|
|
|
|
|
|
|
|
const PORT = process.env.PORT || 8080
|
|
|
|
|
|
|
|
const staticpath = path.join(__dirname, (process.env.STATIC_PATH || 'static/'))
|
|
|
|
|
|
|
|
app.use(express.static(staticpath))
|
|
|
|
|
|
|
|
app.listen(PORT, () => {
|
|
|
|
console.log("Violets-Purgatory is now listening on port: " + PORT)
|
|
|
|
})
|
|
|
|
|