flask - Run Gunicorn from Python with FlaskScript -
 I have a flask app that I want to run with gonoricon server rather than in wkrkzug (even in development) I am But as an app is created using the  create_app  function, Gunicorn can not be started from the command line with  my_module: my_app . In addition, I have a  manage.py  script written with the help of a flask-script extension to run the server and some other operations. 
 I like  Gunicorn.app.wsgiapp.WSGIApplication  as the solution is proposed here in the same style :, but the  app_uri  attribute on my code object is not found . 
Does anyone have an idea of how to do this?
You are remembering the same obvious thing that I once did. ;)
  gonocorn 'my_module: create_app ()'   
Comments
Post a Comment