Akane710 commited on
Commit
e57deaf
·
verified ·
1 Parent(s): 859484b

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +6 -5
server.js CHANGED
@@ -6,7 +6,8 @@ import ytdl from "@distube/ytdl-core";
6
  import yts from "youtube-yts";
7
 
8
  const app = express();
9
- const PORT = 3000;
 
10
 
11
  // Middleware
12
  app.use(bodyParser.json());
@@ -55,7 +56,7 @@ app.get("/download", async (req, res) => {
55
  }
56
  });
57
 
58
- // Start the server
59
- app.listen(PORT, () => {
60
- console.log(`Server is running on http://localhost:${PORT}`);
61
- });
 
6
  import yts from "youtube-yts";
7
 
8
  const app = express();
9
+ const PORT = 7860;
10
+ const HOST = '0.0.0.0';
11
 
12
  // Middleware
13
  app.use(bodyParser.json());
 
56
  }
57
  });
58
 
59
+
60
+ app.listen(PORT, HOST, () => {
61
+ console.log(`Running on http://${HOST}:${PORT}`);
62
+ });