This is actually quite simple. To run it:
- Install prerequisites (once only)
pip install -r requirements.txt- Config environments
export BAIDU_API_KEY=<baidu-pcs-client-id>
export BAIDU_API_SECRET=<baidu-pcs-client-secret>
export PORT=<the port to listen to>- Run
gunicorn --bind localhost:8080 app:app
That's it.
Profile, Procfile.windows, runtime.txt are for Heroku deployment only, you can ignore them.