A sample Flask application to deploy to Cloud Foundry which works out of the box.
- 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/activate
on Mac OS X/Linux orvenv\Scripts\activate.bat
on windows - Run
pip install -r requirements.txt
- Run
python app.py
- Visit http://localhost:3000
- Install the cf CLI
- Run
cf push my-python-app -m 128M --random-route
- Visit the given URL