mirror of
https://github.com/swisscom/cf-sample-app-python.git
synced 2026-12-04 14:38:47 +00:00
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%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .gitignore | ||
| app.py | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| Procfile | ||
| README.md | ||
| requirements.txt | ||
CF Sample App Python
A sample Flask application to deploy to Cloud Foundry which works out of the box.
Run locally
- Install Python
- Install Setuptools and pip (see guide above)
- Install Virtualenv (acconplish this by running
pip install virtualenv) - Run
virtualenv venv - Run
source venv/bin/activateon Mac OS X/Linux orvenv\Scripts\activate.baton windows - Run
pip install -r requirements.txt - Run
python app.py - Visit http://localhost:3000
Run in the cloud
- Install the cf CLI
- Run
cf push my-python-app -m 128M --random-route - Visit the given URL