This git repository helps you get up and running quickly with a Trac installation on OpenShift. The bankend database can by sqlite, MySQL or PostgreSQL, depending on the cartridges that are installed when the application is launched.
This quickstart contains the base Trac installation, as well as TracAccountManager.
-
Create an account at http://www.openshift.com/ and install the client tools (run 'rhc setup' first)
-
Create a Python 2.7 application, with the cartridge containing the database you want. If you do not install a database cartridge at this time, the default sqlite database will be used.
For example:
rhc app create trac python-2.7 mysql-5 --from-code=https://github.com/kelvinmo/trac-openshift-quickstart
-
You will need to create a Trac administration account manually. SSH to the instance and run the following command:
trac-admin $OPENSHIFT_DATA_DIR/trac/env permission add <user_name> TRAC_ADMIN
-
That's it, you can now checkout your application at:
You will need to set up access to the source code repository manually in the OpenShift data directory.
The Trac environment directory is located at $OPENSHIFT_DATA_DIR/trac
.