mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-18 21:21:29 +03:00
Fixed heroku port
This commit is contained in:
@@ -108,9 +108,9 @@ function File(id, title, thumbnailURL, isAudio, duration, url, uploader, size, p
|
|||||||
// actual functions
|
// actual functions
|
||||||
|
|
||||||
function startServer() {
|
function startServer() {
|
||||||
if (process.env.USING_HEROKU) {
|
if (process.env.USING_HEROKU && process.env.PORT) {
|
||||||
// default to port 80 on heroku
|
// default to port 80 on heroku
|
||||||
backendPort = 80;
|
backendPort = process.env.PORT || backendPort;
|
||||||
|
|
||||||
// TODO: set config to port 80?
|
// TODO: set config to port 80?
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user