Skip to content

petarmihaylov/flask-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask on OpenShift

This git repository helps you get up and running quickly w/ a Flask installation on OpenShift. It also installs some flask extensions to speed up davelopment.

Pre-installed Extensions:

  • Flask-MongoAlchemy>=0.6.1
  • flask-script
  • flask-bootstrap
  • flask-moment
  • flask-wtf
  • flask-sqlalchemy
  • flask-migrate
  • flask-mail
  • flask-login
  • forgerypy
  • flask-pagedown
  • markdown
  • bleach
  • flask-httpauth

Running on OpenShift

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

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/

About

OpenShift Quick Start Git Repository for Flask

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 58.1%
  • Python 41.9%