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, a minimal html doctype + styles.
Local development:
- Clone the repo.
- Run
python app.py
. - Go to localhost:5000.
- Hack your heart out!
Deploying to OpenShift:
- Sign up for OpenShift & install the redhat command like tools:
gem install rhc
. - Create new OpenShift app with Python cartridge:
rhc app create myapp python-2.7
. - Download & unpack this repo into
myapp
directory - Hack, test locally, and commit ad nauseum
- Push the changes to Openshift:
git push
- Go to http://myapp-$yournamespace.rhcloud.com
© 2014 · Neal Shyam · Pull requests welcome · MIT License blah blah blah