Help getting Flask running on Python 2.7 Community version
You can still read and search them, but for help, please post a question on Stack Overflow.
I have an existing Flask application with it's own layout and a lot of code. I wanted to deploy it to OpenShift, but I'm running Python 2.7. I installed the cartridge for Python 2.7 Community Edition, but although I'm able to run the test app (displaying a static page), I have not been able to run Flask, even it runs on WSGI locally.
Do I need to move all my code into the "magic" wsgi/ director?
I am currently running: run_gevent_server(app, ip, port)
where ip and port are the OPENSHIFT_INTERNAL_IP and where app is a reference to my main flask app.py. It works when I run gevent locally. But when I deploy, I get 503 from the server, and I cannot find any logs showing what happened.
Any guidance is much appreciated!