Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nealrs/flask-os
Python + Flask Quick-Start for OpenShift
https://github.com/nealrs/flask-os
Last synced: 1 day ago
JSON representation
Python + Flask Quick-Start for OpenShift
- Host: GitHub
- URL: https://github.com/nealrs/flask-os
- Owner: nealrs
- License: mit
- Created: 2014-11-15T18:20:29.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-26T20:25:00.000Z (about 10 years ago)
- Last Synced: 2023-07-31T17:25:58.150Z (over 1 year ago)
- Language: Python
- Size: 148 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
## This is a Python / Flask Quick-Start for OpenShift.
I really dig deploying Flask apps to OpenShift. But I always feel like I'm starting from scratch. So I hacked up a little quick-start repo that incorporates [derptype](https://github.com/nealrs/derptype), a minimal html doctype + styles.
## So, how do you get this running?
**Local development:**
1. Clone the repo.
2. Run `python app.py`.
3. Go to [localhost:5000](http://localhost:5000).
4. Hack your heart out!**Deploying to OpenShift:**
1. [Sign up for OpenShift](http://openshift.com) & install the redhat command like tools: `gem install rhc`.
2. Create new OpenShift app with Python cartridge: `rhc app create myapp python-2.7`.
3. Download & unpack this repo into `myapp` directory
4. Hack, test locally, and commit _ad nauseum_
5. Push the changes to Openshift: `git push`
6. Go to http://myapp-$yournamespace.rhcloud.com**© 2014 · [Neal Shyam](http://nealshyam.com) · Pull requests welcome · MIT License blah blah blah**