youtube-dl-api-server icon indicating copy to clipboard operation
youtube-dl-api-server copied to clipboard

Help: Use a production WSGI server instead

Open korchix opened this issue 3 years ago • 1 comments

Hello and thank you for this great API. when running the server using the command: youtube-dl-server i get a waring saying:

Serving Flask app 'youtube_dl_server.app' (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.

can please someone help here to tell, what changes needed to be done, to run the server as WSGI. i made some google search and tried waitress and Gevent but unfortunately i didn't get it to work.

korchix avatar Jan 17 '22 22:01 korchix

You can use gunicorn like this (running from root of this repository):

gunicorn --bind 127.0.0.1:8080 youtube_dl_server.app:app

There's also a pull request about docker (#78), I've commented with a Dockerfile using gunicorn, so you can use that as well.

ja2142 avatar Apr 10 '22 23:04 ja2142