Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/swisscom/cf-sample-app-python

A sample Flask application to deploy to Cloud Foundry which works out of the box.
https://github.com/swisscom/cf-sample-app-python

cloud-foundry flask python swisscom-application-cloud

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# CF Sample App Python

A sample [Flask](http://flask.pocoo.org/) application to deploy to Cloud Foundry which works out of the box.

## Run locally

1. Install [Python](http://docs.python-guide.org/en/latest/starting/installation/)
1. Install Setuptools and pip (see guide above)
1. Install Virtualenv (acconplish this by running `pip install virtualenv`)
1. Run `virtualenv venv`
1. Run `source venv/bin/activate` on Mac OS X/Linux or`venv\Scripts\activate.bat` on windows
1. Run `pip install -r requirements.txt`
1. Run `python app.py`
1. Visit [http://localhost:3000](http://localhost:3000)

## Run in the cloud

1. Install the [cf CLI](https://github.com/cloudfoundry/cli#downloads)
1. Run `cf push my-python-app -m 128M --random-route`
1. Visit the given URL