aria2c-ariang
aria2c-ariang copied to clipboard
Aria2c+AriaNg
It it recommended to find other platform than Heroku to deploy this as they are actively prevent this from deploying there. You can find many free platforms here: https://free-for.dev/
Deploying On Heroku
Requirement
- Docker
- Heroku CLI
- git
- Ability to use terminal
Steps
- Run
heroku loginto login, thenheroku container:logintoo. - Clone this repository and enter it. (PS: Please run
git config --global core.autocrlf falsebeforegit cloneif you are using Windows.) - Run
heroku apps:create APP_NAMEto create it. - Copy
.env.templateto.env, and edit it accordingly. - Run
heroku container:push web -a APP_NAMEandheroku container:release web -a APP_NAME. - Run
heroku open -a APP_NAMEand it will open your browser to deployed instance.
Optional: Sync downloaded file to your cloud drive using Rclone
- Setup Rclone locally by following offical instructions: https://rclone.org/docs/
- Find your
rclone.conffile, it should look like this:
[DRIVENAME]
type = WHATEVER
client_id = WHATEVER
client_secret = WHATEVER
scope = WHATEVER
token = WHATEVER
others entries...
- Find the drive you want to use, and copy its
type = ...to... token = ...section. - Replace all linebreaks with
\n. - That text will be
RCLONE_CONFIGin.envfile. DOWNLOAD_DESTINATIONin.envis a path starting with/.
FAQ
It automatically stop after 30 minutes, and files were lost.
It is because Heroku's free dyno will idle when there is no incoming request within 30 minutes, and your files will be deleted too, this is why you might want to use Rclone.
Can I delete files?
No. Just wait for its idling, and your files will be deleted.
You said it will idle automatically, so I can't download large files?
It will generate fake requests when there are downloading or uploading tasks, so it won't idle when your files aren't completed.