Skip to content
abhardwaj edited this page Feb 22, 2013 · 9 revisions

Prepare the setup environment

install postgres

  • sudo apt-get install postgres

install required python packages

  • pip install django
  • pip install south
  • pip install psycopg2
  • pip install beautifulsoup4
  • pip install stemming

download voicex

  • git clone git@github.com:abhardwaj/voicex.git

create voicex database

  • psql -U postgres -W -h localhost
  • create database voicex

Make configuration changes

setup log files

  • cd voicex
  • chown -R www-data logs (give apache the permissions to write to log file -- required only if you plan to run in production mode with apache)

install schema

  • cd src/voicex
  • python manage.py syncdb
  • python manage.py migrate

Running in development mode

run voicex server

  • python manage.py runserver

Running in production mode with apache

add the following lines in /etc/apache2/httpd.conf

  • WSGIDaemonProcess voicex python-path=/path/to/voicex
  • WSGIScriptAlias /voicex /path/to/voicex/http_handler/wsgi.py process-group=voicex application-group=%{GLOBAL}