Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help: Use a production WSGI server instead #82

Open
korchix opened this issue Jan 17, 2022 · 1 comment
Open

Help: Use a production WSGI server instead #82

korchix opened this issue Jan 17, 2022 · 1 comment

Comments

@korchix
Copy link

korchix commented Jan 17, 2022

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.

@ja2142
Copy link

ja2142 commented Apr 10, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants