Skip to content

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

License

Notifications You must be signed in to change notification settings

swisscom/cf-sample-app-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published