test: add ability to specify port in adhoc test
This commit is contained in:
parent
acbf7d3fda
commit
5aa029ac88
|
@ -1,8 +1,10 @@
|
|||
import express from 'express'
|
||||
import compression from 'compression'
|
||||
import fs from 'fs'
|
||||
import process from 'process'
|
||||
|
||||
const app = express()
|
||||
const port = 3000
|
||||
const port = process.env.PORT || 3000
|
||||
|
||||
app.use(compression())
|
||||
app.use(express.static('./'))
|
||||
|
|
Loading…
Reference in New Issue