I'm at a loss here...
I'm trying to use uwsgi to run my flask app. Using the example at WSGI Quick Start I get it to run.
For development (restserver.py):
from api import app
if __name__ == '__main__':
app.run(debug=True, port=8080)
How would I start the uwsgi server with this?
I have tried this (restserver.fcgi):
#!/usr/bin/python
from flup.server.fcgi import WSGIServer
from api import app
if __name__ == '__main__':
WSGIServer(app, bindAddress='/var/run/fcgi.sock').run()
but when reading more I see that uwsgi want's to call the method application by default. I can change that of course but I don't have and application method so when running:
/usr/local/bin/uwsgi --http :9090 --wsgi-file restserver.fcgi
I get the following message in the start log:
unable to find "application" callable in file restserver.fcgi