-2

I am fresher looking to deploy my python flask API in Jetty or tomcat.

No idea how to do that first time to the deployment. I tested it postman wsgi server getting the output.

No idea about how to move ahead.

Murthy P
  • 15
  • 1
  • 3
  • 8
  • I have the same problem. I would like to deploy my python flask API in tomcat. Would you be able to resolve this? If not, what server did you try to deploy? Thanks – MSV Mar 30 '20 at 21:08

1 Answers1

3

For flask applications, you do not use Jetty or Tomcat which are web servers majorly for Java applications. Compatible webservers for Flask would be using either of Gunicorn, uWSGI, Gevent, Twisted Web documented here.

For most use cases, Gunicorn would suffice as a web server. You could check out the gunicorn documentation here or DigitalOcean's tutorial here