Compare commits

...

2 Commits

Author SHA1 Message Date
13659fc5b5
Updated port 2022-08-17 20:56:00 +07:00
6b1801c0d2
Updated 2022-08-17 20:45:29 +07:00
2 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
web: npm run start web: npm start

View File

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