mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-16 10:21:27 +03:00
updated procfile and made server heroku compatible
This commit is contained in:
2
Procfile
2
Procfile
@@ -1 +1 @@
|
|||||||
web: cd backend && node app.js
|
web: cd backend && npm install && node app.js
|
||||||
@@ -108,6 +108,12 @@ function File(id, title, thumbnailURL, isAudio, duration, url, uploader, size, p
|
|||||||
// actual functions
|
// actual functions
|
||||||
|
|
||||||
function startServer() {
|
function startServer() {
|
||||||
|
if (process.env.USING_HEROKU) {
|
||||||
|
// default to port 80 on heroku
|
||||||
|
backendPort = 80;
|
||||||
|
|
||||||
|
// TODO: set config to port 80?
|
||||||
|
}
|
||||||
if (usingEncryption)
|
if (usingEncryption)
|
||||||
{
|
{
|
||||||
https.createServer(options, app).listen(backendPort, function() {
|
https.createServer(options, app).listen(backendPort, function() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "youtube-dl-material",
|
"name": "youtube-dl-material",
|
||||||
"version": "0.0.0",
|
"version": "3.5.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
|
|||||||
Reference in New Issue
Block a user