updated procfile and made server heroku compatible

This commit is contained in:
Isaac Grynsztein
2020-03-21 21:28:29 -04:00
parent 17d877f44a
commit 3a6d0f38d7
3 changed files with 8 additions and 2 deletions

View File

@@ -108,6 +108,12 @@ function File(id, title, thumbnailURL, isAudio, duration, url, uploader, size, p
// actual functions
function startServer() {
if (process.env.USING_HEROKU) {
// default to port 80 on heroku
backendPort = 80;
// TODO: set config to port 80?
}
if (usingEncryption)
{
https.createServer(options, app).listen(backendPort, function() {