forked from eric-kansas/Gold-Rush-Server
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
23 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,4 @@ | ||
TurboGears2 on Red Hat's OpenShift Express | ||
========================================== | ||
Lulz App | ||
======== | ||
|
||
This quickstart helps you get up and running with a fully-functional | ||
TurboGears2 instance 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 TG2 + MySQL application to the OpenShift cloud with a single command, using my `openshift-quickstarter` tool: http://github.com/lmacken/openshift-quickstarter | ||
|
||
:: | ||
|
||
./openshift-quickstarter EMAIL DOMAIN APPNAME turbogears2 | ||
|
||
That's it! You can now view your application at: | ||
|
||
:: | ||
|
||
http://APPNAME-DOMAIN.rhcloud.com | ||
|
||
.. image:: http://lewk.org/img/turbogears2-quickstart.png | ||
|
||
|
||
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-create-app -a tg2 -t wsgi-3.2 -l your@email.com | ||
rhc-ctl-app -a tg2 -e add-mysql-5.1 -l your@email.com | ||
cd tg2app | ||
git remote add upstream -m master git://github.com/lmacken/turbogears2-openshift-quickstart.git | ||
git pull -s recursive -X theirs upstream master | ||
git push | ||
|
||
Monitoring your logs | ||
-------------------- | ||
|
||
:: | ||
|
||
rhc-tail-files -a tg2app -l your@email.com | ||
Go look at http://localhost:8080/game/1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters