We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c5bca8 commit b068baaCopy full SHA for b068baa
src/producer.js
@@ -12,6 +12,9 @@ const pgOptions = config.get('POSTGRES')
12
const pgConnectionString = `postgresql://${pgOptions.user}:${pgOptions.password}@${pgOptions.host}:${pgOptions.port}/${pgOptions.database}`
13
const pgClient = new pg.Client(pgConnectionString)
14
15
+const express = require('express')
16
+const app = express()
17
+const port = 3000
18
19
20
const busApiClient = busApi(_.pick(config,
@@ -72,3 +75,9 @@ async function run () {
72
75
}
73
76
74
77
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