Search code examples
python-2.7openshiftpaas

The use of app.py.disabled on openshift


I recently created a python app on openshift. I found a file called app.py.disabled when I git cloned the repo. Can anyone explain what it does?


Solution

  • I found the answer here: https://www.openshift.com/forums/openshift/how-to-make-python-front-end

    Our Python 2.6 and 2.7 cartridges are wsgi-based: http://webpython.codepoint.net/wsgi_tutorial You will want to define handlers for each. For example, the default application (repo/wsgi/application) handles /health and /env specifically and generically for everything else: ...

    You can override that with repo/app.py and use something like cherrypy if you wanted to (see app.py.disabled as an example). Otherwise, it's hardcoded to serve repo/wsgi/application by default.