A ready-for-Heroku youtube-dl REST API server.
-
Ensure you have the Heroku toolbelt installed and set-up.
-
Clone this repo:
git clone https://github.com/iphoting/youtube-dl-api-server-heroku
. -
Provision a Heroku app:
cd youtube-dl-api-server-heroku; heroku create <your-app-name>
. -
Push to deploy the app:
git push -u heroku master
. -
Check its runtime logs:
heroku logs
, and status:heroku ps
. -
Your API server version is now available at:
https://<your-app-name>.herokuapp.com/api/version
.
-
Setup virtualenvwrapper and activate it. Install pip-tools (>= 1.2) and pipenv:
pip install -U pip-tools pipenv
. -
Update to the latest packages:
pip-compile --upgrade --generate-hashes ; pipenv lock
. -
Commit changes:
git commit -m "Updated packages." requirements.txt Pipfile.lock
. -
Push to deploy changes:
git push
.