A sample Flask application to deploy to Cloud Foundry which works out of the box. | Read-only mirror of https://github.com/swisscom/cf-sample-app-python — Swisscom. Issues & pull requests at the source.
  • Python 96.1%
  • Procfile 3.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-10-16 17:16:30 +02:00
.gitignore Add virtualenv folder to gitignore 2016-04-11 13:56:49 +02:00
app.py add comments 2016-04-11 23:45:11 +02:00
CODE_OF_CONDUCT.md Compliance bulk update. Add CODE_OF_CONDUCT.md 2024-10-16 17:16:30 +02:00
CONTRIBUTING.md Compliance bulk update. Add CONTRIBUTING.md 2024-10-16 17:16:29 +02:00
LICENSE Add license file 2017-05-29 11:01:00 +02:00
Procfile change filename to app.py 2016-04-11 22:28:28 +02:00
README.md Push with lower memory limit 2017-05-16 11:28:41 +02:00
requirements.txt Upgrade Flask to 0.12 2017-03-18 13:05:56 +01:00

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