2011-09-02 08:29:06 +00:00
|
|
|
Entropy Free / LC Digital Gazetteer installation
|
2011-08-27 19:55:03 +00:00
|
|
|
|
2011-09-02 08:29:06 +00:00
|
|
|
Install:
|
|
|
|
python-pip
|
|
|
|
python-virtualenv
|
|
|
|
python-psycopg2
|
|
|
|
postgresql-postgis-8.4
|
|
|
|
postgresql-contrib-8.4
|
|
|
|
apache2
|
|
|
|
libapache2-mod-wsgi
|
|
|
|
|
|
|
|
Create the database:
|
|
|
|
createdb gazetteer
|
|
|
|
bzcat digital-gazetteer.sql.bz2 | psql gazetteer
|
2011-08-16 16:57:39 +00:00
|
|
|
|
|
|
|
Get:
|
2011-09-02 08:29:06 +00:00
|
|
|
# bzr branch PUBLIC_URL gazetteer
|
2011-08-16 16:57:39 +00:00
|
|
|
cd gazetteer
|
|
|
|
virtualenv .
|
|
|
|
pip -E . install -r requirements.txt
|
|
|
|
|
|
|
|
Develop:
|
|
|
|
create gazetteer/local_settings.py
|
|
|
|
|
|
|
|
. bin/activate
|
|
|
|
cd gazetteer
|
|
|
|
python manage.py shell
|
|
|
|
|
|
|
|
python manage.py runserver
|
|
|
|
|
2011-09-02 08:29:06 +00:00
|
|
|
|
2011-08-16 16:57:39 +00:00
|
|
|
Deploy:
|
|
|
|
create gazetteer/local_settings.py
|
2011-09-02 08:29:06 +00:00
|
|
|
copy conf/apache2.conf to /etc/apache2/sites-available and edit it
|