Skip to content

Commit b068baa

Browse files
Update producer.js
1 parent 5c5bca8 commit b068baa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/producer.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ const pgOptions = config.get('POSTGRES')
1212
const pgConnectionString = `postgresql://${pgOptions.user}:${pgOptions.password}@${pgOptions.host}:${pgOptions.port}/${pgOptions.database}`
1313
const pgClient = new pg.Client(pgConnectionString)
1414

15+
const express = require('express')
16+
const app = express()
17+
const port = 3000
1518

1619

1720
const busApiClient = busApi(_.pick(config,
@@ -72,3 +75,9 @@ async function run () {
7275
}
7376

7477
run()
78+
79+
app.get('/health', (req, res) => {
80+
//console.log('pgClient', pgClient)
81+
res.send('ok')
82+
})
83+
app.listen(port, () => console.log(`Example app listening on port ${port}!`))

0 commit comments

Comments
 (0)