chat pic
This commit is contained in:
10
index.js
10
index.js
@@ -1,3 +1,4 @@
|
||||
require('dotenv').config();
|
||||
const express = require('express');
|
||||
const app = express();
|
||||
const path = require('path');
|
||||
@@ -486,8 +487,7 @@ cron.schedule('0 0 1 * *', async () => {
|
||||
scheduled: true,
|
||||
timezone: 'Asia/Tehran'
|
||||
})
|
||||
module.exports = (port) => {
|
||||
http.listen(port, () => {
|
||||
console.log(`HTTP server is running on port ${port}`)
|
||||
})
|
||||
}
|
||||
const port = process.env.APP_PORT || 3002;
|
||||
http.listen(port, () => {
|
||||
console.log(`HTTP server is running on port ${port}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user