https://github.com/lmacken/pyramid-openshift-quickstart
Pyramid + SQLALchemy quickstart repository for OpenShift Express
https://github.com/lmacken/pyramid-openshift-quickstart
Last synced: 4 months ago
JSON representation
Pyramid + SQLALchemy quickstart repository for OpenShift Express
- Host: GitHub
- URL: https://github.com/lmacken/pyramid-openshift-quickstart
- Owner: lmacken
- Created: 2011-09-11T20:57:15.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2013-05-09T17:33:16.000Z (over 12 years ago)
- Last Synced: 2025-09-01T13:10:55.215Z (4 months ago)
- Language: Python
- Homepage: http://openshift.redhat.com
- Size: 235 KB
- Stars: 9
- Watchers: 2
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Pyramid on Red Hat's OpenShift Express
======================================
This quickstart helps you get up and running with a Pyramid installation on
OpenShift. It automatically handles creating a Python virtualenv, populating a
MySQL database, and deploying your application to the cloud.
* Create an account at http://openshift.redhat.com/
Features
--------
* Completely free, thanks to Red Hat's OpenShift Express
* MySQL database automatically setup for your application
* Dynamic database configuration at runtime. No passwords stored in your configs.
* Your application's test suite is run after each push
* Automatic deployment upon git push
* No need to think about servers, let alone apache/mod_wsgi configuration
The fastest method
------------------
You can easily deploy a pre-configured Pyramid + MySQL application to the
OpenShift cloud with a single command, using the `openshift-quickstarter` tool:
http://github.com/lmacken/openshift-quickstarter
::
./openshift-quickstarter EMAIL DOMAIN APPNAME pyramid
That's all it takes. You can now view your application at:
::
http://APPNAME-DOMAIN.rhcloud.com
.. image:: http://lewk.org/img/pyramid-quickstart.png
Notice the 'test name' on the default homepage, which is pulled in from our database.
The manual method
-----------------
If you don't want to use the `openshift-quickstarter`, you can easily create a new OpenShift WSGI application and merge this quickstart into it manually:
::
rhc app create -a pyramidapp -t python-2.7 -l your@email.com
rhc cartridge add -a pyramidapp -c mysql-5.1 -l your@email.com
cd pyramidapp
git remote add upstream -m master git://github.com/lmacken/pyramid-openshift-quickstart.git
git pull -s recursive -X theirs upstream master
git push
Monitoring your logs
--------------------
::
rhc-tail-files -a pyramidapp -l your@email.com