From fb5054a1d7d9efbcfbc217ed5792632fd2c44ce6 Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Sat, 21 Mar 2020 22:11:50 -0400 Subject: [PATCH] when using heroku, port is auto set as heroku's port --- backend/app.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/app.js b/backend/app.js index 49805ea..ed17ec2 100644 --- a/backend/app.js +++ b/backend/app.js @@ -109,10 +109,11 @@ function File(id, title, thumbnailURL, isAudio, duration, url, uploader, size, p function startServer() { if (process.env.USING_HEROKU && process.env.PORT) { - // default to port 80 on heroku + // default to heroku port if using heroku backendPort = process.env.PORT || backendPort; - // TODO: set config to port 80? + // set config to port + config_api.setConfigItem('ytdl_port', backendPort); } if (usingEncryption) {