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 1192003 commit 7a39418Copy full SHA for 7a39418
bin/update-server.js
@@ -14,7 +14,7 @@ const assert = require('assert')
14
// Args
15
//
16
17
-const { TOKEN: token, REDIS_URL: redisUrl } = process.env
+const { TOKEN: token, REDIS_URL: redisUrl, PORT: port = 3000 } = process.env
18
assert(token, 'TOKEN required')
19
20
@@ -43,6 +43,6 @@ const cache = {
43
44
45
const updates = new Updates({ token, cache })
46
-const server = updates.listen(3000, () => {
47
- console.log(`http://localhost:${server.address().port}`)
+updates.listen(port, () => {
+ console.log(`http://localhost:${port}`)
48
})
0 commit comments