Fixed heroku port

This commit is contained in:
Isaac Grynsztein
2020-03-21 21:58:13 -04:00
parent 1d6fddf386
commit 25dc8d137a

View File

@@ -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?
} }