Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maple3142/aria2c-ariang
https://github.com/maple3142/aria2c-ariang
aria2c heroku
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/maple3142/aria2c-ariang
- Owner: maple3142
- Archived: true
- Created: 2019-12-02T12:46:10.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T05:19:41.000Z (almost 2 years ago)
- Last Synced: 2024-08-02T16:38:16.983Z (5 months ago)
- Topics: aria2c, heroku
- Language: HTML
- Homepage:
- Size: 1.27 MB
- Stars: 310
- Watchers: 13
- Forks: 482
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://www.docker.com/)
* [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli)
* [git](https://git-scm.com/)
* Ability to use terminal### Steps
1. Run `heroku login` to login, then `heroku container:login` too.
2. Clone this repository and enter it. (PS: Please run `git config --global core.autocrlf false` before `git clone` if you are using Windows.)
3. Run `heroku apps:create APP_NAME` to create it.
4. Copy `.env.template` to `.env`, and edit it accordingly.
5. Run `heroku container:push web -a APP_NAME` and `heroku container:release web -a APP_NAME`.
6. Run `heroku open -a APP_NAME` and it will open your browser to deployed instance.### Optional: Sync downloaded file to your cloud drive using Rclone
1. Setup Rclone locally by following offical instructions: https://rclone.org/docs/
2. Find your `rclone.conf` file, it should look like this:```conf
[DRIVENAME]
type = WHATEVER
client_id = WHATEVER
client_secret = WHATEVER
scope = WHATEVER
token = WHATEVERothers entries...
```3. Find the drive you want to use, and copy its `type = ...` to `... token = ...` section.
4. Replace all linebreaks with `\n`.
5. That text will be `RCLONE_CONFIG` in `.env` file.
6. `DOWNLOAD_DESTINATION` in `.env` is 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.