import express from 'express'

const app = express()
app.get('/', (request, response) => {
  response.send('Hello, world!')
})

const port = 3000
app.listen(port, () => {
  console.log(`app listening on port ${port}`)
})

import express from 'express'

const app = express()
app.get('/', (request, response) => {
  response.send('Hello, world!')
})

const port = process.env.VK_GROUP_STATS_PORT || 3000
app.listen(port, () => {
  console.log(`app listening on port ${port}`)
})

Read a port from an environment
Read a port from an environment
