wuhp commited on
Commit
4e7eecc
·
verified ·
1 Parent(s): b90ef8e

Update server.ts

Browse files
Files changed (1) hide show
  1. server.ts +1 -1
server.ts CHANGED
@@ -10,7 +10,7 @@ const NodeMediaServer = require('node-media-server');
10
 
11
  async function startServer() {
12
  const app = express();
13
- const PORT = 3000;
14
 
15
  // Start Node Media Server for RTMP Ingest (1935) and HTTP FLV (8123)
16
  const nmsConfig = {
 
10
 
11
  async function startServer() {
12
  const app = express();
13
+ const PORT = process.env.PORT ? parseInt(process.env.PORT as string, 10) : 3000;
14
 
15
  // Start Node Media Server for RTMP Ingest (1935) and HTTP FLV (8123)
16
  const nmsConfig = {