Giter Site home page Giter Site logo

flask-example's Introduction

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](http://launch-shifter.rhcloud.com/launch/light/Click to install.svg)

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/

flask-example's People

Contributors

banzaiman avatar bparees avatar danmcp avatar dblado avatar dlbewley avatar egandone avatar fallenpegasus avatar gshipley avatar jsvgoncalves avatar mrunalp avatar thefotios avatar thesteve0 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.