https://github.com/swisscom/cf-default-app-python
The default Python app that will be pushed in the Swisscom Application Cloud if no source code is provided
https://github.com/swisscom/cf-default-app-python
cloud-foundry flask python swisscom-application-cloud
Last synced: 3 months ago
JSON representation
The default Python app that will be pushed in the Swisscom Application Cloud if no source code is provided
- Host: GitHub
- URL: https://github.com/swisscom/cf-default-app-python
- Owner: swisscom
- License: other
- Created: 2016-06-23T09:41:53.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-16T15:15:23.000Z (9 months ago)
- Last Synced: 2025-03-20T11:22:21.606Z (3 months ago)
- Topics: cloud-foundry, flask, python, swisscom-application-cloud
- Language: HTML
- Size: 10.6 MB
- Stars: 0
- Watchers: 35
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# CF Default App Python
The default Python app that will be pushed in the Swisscom Application Cloud if no source code is provided.
Based on [Flask](http://flask.pocoo.org/)
## Run locally
1. Install [Python](http://docs.python-guide.org/en/latest/starting/installation/)
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 --random-route`
1. Visit the given URL## Create ZIP
1. Run `zip -r python_app.zip static templates app.py Procfile requirements.txt`