wiki:ThibloPyInstallationAtThibloCom

Installing Thiblo on the development server of thiblo.com

This page is for those having and account on the development server of thiblo.com.

Port and database name selection

Pick 2 ports you are going to use, one for your thiblo copy, and one for your openid server.

Setup

Issue the command

thiblo-setup  thiblo.com  THIBLO_CHECKOUT_PATH  THIBLO_PORT  OPENID_PORT  DATABASE_PASSWD

Notes: 1) THIBLO_CHECKOUT_PATH should be the directory that contains the working copy with the thiblopy/ and openid_server/ subdirectories. 2) You need to be member of the thiblo unix group to be able to do this.

The script will do the following things:

  • set up a database user $USER with the given password
  • create thiblopy/.mysettings and openid_server/.mysettings
  • evaluate macros in apache/apache.conf.template, creating apache/apache.conf
  • set access rights to 1777 of your templates/cache directory
  • link in your apache.conf to the central apache config, also enables your port there

You can use

cd thiblopy; devel/dbreset

to (re)create your database, syncdb it, and import initial data. Apache will serve your copy, in case you need to restart the global apache, you need to "sudo /etc/init.d/apache restart".

openid

You need to do syncdb and runserver at your openid server directory, currently we don't serve openid with apache.

cd openid_server
devel/dbreset
devel/start

devel/start differs from python2.5 manage.py runserver in that it takes SERVER_URL from .mysettings.py, deletes http:// and gives it as an argument to runserver so it listens on the correct interface and port.

manual database access

You can simply use

psql username_thiblo
psql username_openid

to access your databases (username is to be changed to $USER).

The common copy

We are going to have a common copy of the system which is for presentation purposes. That copy will be checked out under a dedicated unix account, using this same mechanism. People allowed to update that will be able to use sudo to do that.