- Docker
- Heroku CLI
- git
- Ability to use terminal
- 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. - Run
heroku config:set -a APP_NAME ARIA2C_SECRET=ARIA2_SECRETandheroku config:set -a APP_NAME HEROKU_APP_NAME=APP_NAME. - 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.
- 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. - Run
heroku config:set -a APP_NAME RCLONE_CONFIG=THAT_TEXT. - Run
heroku config:set -a APP_NAME RCLONE_DESTINATION=DOWNLOAD_DESTINATION,DOWNLOAD_DESTINATIONis a path starting with/.
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.
No. Just wait for its idling, and your files will be deleted.
It will generate fake requests when there are downloading or uploading tasks, so it won't idle when your files aren't completed.