[Edit][History] last modified April 11

Requires:

  • Mercurial (hg)
  • PostgreSQL (psql)
  • Python 2.5 or later (python)
  • Psycopg2 - Python driver for PostgreSQL

Note: "Pharos", the name of the lighthouse of Alexandria, is the internal name for the Open Library.

Setup:

$ export APP=myappname
$ hg clone http://demo.openlibrary.org:9021 pharos
$ cd pharos
$ ./setup.sh
$ createdb $APP
$ createlang plpgsql $APP
$ psql $APP < infogami.new/infogami/infobase/schema.sql
$ cd pharos
$ cp sample_run.py run.py
$# Edit run.py to change database settings, including db="$APP"
$ python run.py --createsite
$ python run.py install

Run:

$ python run.py startserver [your server IP address] [port number]

For example, if you want to run it on port 9070, you'd run:

$ python run.py startserver 9070

cygwin users may need to specify an IP; i.e. if your server IP is 192.168.1.100, run:

$ python run.py startserver 192.168.1.100