-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
heroku deploy not working #6
Comments
looks like this is the error, npm ERR! Failed at the [email protected] start script. maybe a compatible startup script would fix it. |
Hello, According to heroku (the same thing is with Google App Engine), the app should start the port specified by the PORT environment variable ( I added PORT env variable support with the last commit - it should fix it. Please make sure that you don't overwrite the port in I also added the default NodeJs version in package JSON (check this). Finally, I tested by deploying to Heroku. I created a new Heroku project with the name
And it successfully deployed to Heroku. If you have any more issues, please describe your deployment procedure. P. S. I didn't use any |
I'm probably doing something wrong, was not able to test it the steps i taken, created project called torrent-stream-server next i did git clone https://github.com/KiraLT/torrent-stream-server.git cd torrent-stream-server , next i did ~/torrent-stream-server$ heroku git:clone -a torrent-stream-server returned result, fatal: destination path 'torrent-stream-server' already exists and is not an empty directory. when i ls directory i can see all the files are there. not sure what the problem is. i also tried to deploy from heroku's Deployment method github method. it builds, but i do not see anything on the page. |
Regarding the first error, you are using the wrong command. You execute I tested the following setup with a clean project named
But it only works for you if you have to write access to this repo. So this only work in you is in your fork. If you wish to deploy without a fork, you can clone git, reset, and add only heroku remote:
Make sure you are working with a clean heroku project - delete the old one or create a new one. Also, about GitHub deployment, if you are deploying your fork, make sure you have this commit. I see that you used |
For the record, I've been able to deploy on Heroku without problems. Even I've not needed to write any Procfile.
Maybe it's some other limit or behaviour I still don't know but, since I've ruled out Heroku for hosting it anyway, I've not gone deeper. |
Well, it may be because of legal reasons. I found that Heroku scans code dependencies and we have a lot of "interesting" dependencies. I will reopen this issue cause Heroku deployment can be very helpful - I will need to investigate why Heroku block this app and how can we solve it. |
Yes, my first bet was something related to piracy. Also, once #10 is sorted out, we can deploy on Heroku using the Docker buildpack. |
tried to deploy again with clean, install same issue, the app gets automatically suspended after build. you should probably check live-torrent-server project on github and see how this guy got the modules installed. located here, , i have this project running and working really good, with a cdn77 and bunnycdn, you could stream torrents within few seconds, range requests also work. also i like to note, heroku free , users should save data into tmp /app location, free heroku restarts your app every 24 hours i believe. so data gets deleted which is a good idea. you could constantly on demand stream bt videos. |
Browsing the dependency graph, I've found a security issue in one of the dependencies of torrent-stream. See mafintosh/torrent-stream#191, for which there is an open PR, albeit stale. I guess there might be more packages with security issues. |
Dependency Status out of date 9 modules are out of date https://david-dm.org/mafintosh/torrent-stream#info=devDependencies something else to share, ffmpeg in wasm . encode videos in your browser. interesting since many people are using h265, our browsers do not support decoder native . so using this would be interesting. |
@pataquets @omgbox torrent-stream has a lot of deprecated dependencies + it hasn't been updated for a long time. With my recent commit I replaced it with webtorrent- it has a larger community and better performance. I will need to do further testing to make sure that everything works perfectly. @omgbox it looks nice, we should try including it. |
great news, its working perfectly , nyaa working 👍 how would I stream from outside of the interface for example, on my terminal this only works if i use the full url with the filename. this work but this is not working. does the api filter selector which method to automatically select video without appending the full file name. something like this would be cool mpv "https://example.herokuapp.com/stream?torrent=841BC22850387BB471D948472A971C85B6D3157A/:video" /:video will select the largest video file in torrent. |
@omgbox at the moment it is possible to select only by filename. Could you create a new issue and describe which selectors should be useful? |
Heroku seems working fine for several days, so I can close this issue. The only thing I noticed that it sometimes crash because of high download speed (one time it reached 40MB/s), but we have a separate issue for that: #15. |
Watch out #32 |
hi , i am trying to deploy to heroku, but it seems to show Application error, port is set on 80, if you can check what the problem is, because i have no idea :(
The text was updated successfully, but these errors were encountered: