Simple DIY cartridge to add Python 2.7, Nginx and uWSGI support on OpenShift.
$ rhc app create <appname> diy-0.1
$ cd <appname>
$ git remote add upstream -m master git://github.com/skozlovf/openshift-diy-nginx-uwsgi.git
$ git pull -s recursive -X theirs upstream master
$ git push
misc/openshift/ - OpenShift related scripts & configs.
misc/templates/ - Configuration templates.
wsgi/ - WSGI application directory.
Default template uses simple WSGI HTTP server and provides simple HTML with application's environment variables.
To install additional packages just edit requirements.txt
.
Additional deploy actions may be performed in the
.openshift/action_hooks/post_deploy
script.
If you experience problems with downloading (or building) tools on first
push or want to use different versions of them then you may want to update
URLs of the tools in the .openshift/action_hooks/build
or versions
in the misc/openshift/config
.