Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/iphoting/youtube-dl-api-server-heroku

A ready-for-Heroku youtube-dl REST API server
https://github.com/iphoting/youtube-dl-api-server-heroku

heroku python rest-api youtube-dl

Last synced: 1 day ago
JSON representation

A ready-for-Heroku youtube-dl REST API server

Awesome Lists containing this project

README

        

# youtube-dl-api-server
A ready-for-Heroku [youtube-dl](http://rg3.github.io/youtube-dl/) [REST API server](https://github.com/jaimeMF/youtube-dl-api-server).

## Deploying to Heroku

[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)

### Manually

0. Ensure you have the [Heroku toolbelt](https://toolbelt.heroku.com) installed and set-up.

1. Clone this repo: `git clone https://github.com/iphoting/youtube-dl-api-server-heroku`.

2. Provision a Heroku app: `cd youtube-dl-api-server-heroku; heroku create `.

3. Push to deploy the app: `git push -u heroku master`.

4. Check its runtime logs: `heroku logs`, and status: `heroku ps`.

5. Your API server version is now available at: `https://.herokuapp.com/api/version`.

## Updating Python packages

0. Setup virtualenvwrapper and activate it. Install [pip-tools (>= 1.2)](https://github.com/nvie/pip-tools/) and [pipenv](https://github.com/pypa/pipenv): `pip install -U pip-tools pipenv`.

1. Update to the latest packages: `pip-compile --upgrade --generate-hashes ; pipenv lock`.

2. Commit changes: `git commit -m "Updated packages." requirements.txt Pipfile.lock`.

4. Push to deploy changes: `git push`.