OpenShift QuickStart Git Repository for Flask
Python Shell
Latest commit bdd1a22 Jan 11, 2016 @bparees bparees Merge pull request #15 from jsvgoncalves/pep8
Add launch on openshift button
Permalink
Failed to load latest commit information.
.openshift/action_hooks action hook updates Nov 20, 2011
data first rev of Flask for OpenShift Express Sep 28, 2011
libs
wsgi Add launch on openshift button Jan 11, 2016
.gitignore
README
README.md
setup.py Add launch on openshift button Jan 11, 2016

README.md

Flask on OpenShift

This git repository helps you get up and running quickly w/ a Flask installation on OpenShift.

Running on OpenShift

Create an account at https://www.openshift.com

Via Openshift web console

Launch on OpenShift

Via rhc & git

Create a python application

rhc app create flask python-2.6

Add this upstream flask repo

cd flask
git remote add upstream -m master https://github.com/openshift/flask-example.git
git pull -s recursive -X theirs upstream master

Then push the repo upstream

git push

That's it, you can now checkout your application at:

http://flask-$yournamespace.rhcloud.com

To get more log messages in your OpenShift logs please add the following line to your code

app.config['PROPAGATE_EXCEPTIONS'] = True

To read more about logging in Flask please see this email

http://librelist.com/browser//flask/2012/1/27/catching-exceptions-from-flask/