Skip to content

eggtree/openshift-python27-flask-quickstart

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 http://openshift.redhat.com/

Create a python-2.7 application

rhc app create -a flask -t python-2.7

Add this upstream flask repo

cd flask
git remote add upstream -m master https://github.com/mrunalp/openshift-python27-flask-quickstart.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://flask.pocoo.org/mailinglist/archive/2012/1/27/catching-exceptions-from-flask/

About

Quickstart for using flask with python 2.7 cart on openshift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 66.2%
  • Shell 33.8%