Updated port

This commit is contained in:
Sambo Chea 2022-08-17 20:56:00 +07:00
parent 6b1801c0d2
commit 13659fc5b5
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490

View File

@ -1,7 +1,7 @@
const express = require('express')
const os = require('os')
const app = express()
const port = 3000
const port = process.env.PORT || 5000
app.get('/', (req, res) => {
res.json({
@ -13,4 +13,4 @@ app.get('/', (req, res) => {
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
})