mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-11 19:51:28 +03:00
when using heroku, port is auto set as heroku's port
This commit is contained in:
@@ -109,10 +109,11 @@ function File(id, title, thumbnailURL, isAudio, duration, url, uploader, size, p
|
|||||||
|
|
||||||
function startServer() {
|
function startServer() {
|
||||||
if (process.env.USING_HEROKU && process.env.PORT) {
|
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;
|
backendPort = process.env.PORT || backendPort;
|
||||||
|
|
||||||
// TODO: set config to port 80?
|
// set config to port
|
||||||
|
config_api.setConfigItem('ytdl_port', backendPort);
|
||||||
}
|
}
|
||||||
if (usingEncryption)
|
if (usingEncryption)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user