/cf-sample-app-python

A sample Flask application to deploy to Cloud Foundry which works out of the box.

Primary LanguagePythonOtherNOASSERTION

CF Sample App Python

A sample Flask application to deploy to Cloud Foundry which works out of the box.

Run locally

  1. Install Python
  2. Install Setuptools and pip (see guide above)
  3. Install Virtualenv (acconplish this by running pip install virtualenv)
  4. Run virtualenv venv
  5. Run source venv/bin/activate on Mac OS X/Linux orvenv\Scripts\activate.bat on windows
  6. Run pip install -r requirements.txt
  7. Run python app.py
  8. Visit http://localhost:3000

Run in the cloud

  1. Install the cf CLI
  2. Run cf push my-python-app -m 128M --random-route
  3. Visit the given URL