Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
##### VoiceX Installation Instruction #####
## setup environment ##
# install required linux packages
sudo apt-get install postgresql
sudo apt-get install rabbitmq-server
# create rabbitmq user and vhost
sudo rabbitmqctl add_user voicex voicex
sudo rabbitmqctl add_vhost /voicex
sudo rabbitmqctl set_permissions -p /voicex voicex ".*" ".*" ".*"
# setup a virtual environment
virtualenv voicex
cd voicex
source bin/activate
# install required python packages
pip install django
pip install south
pip install psycopg2
pip install beautifulsoup4
pip install stemming
pip install djcelery
# download voicex
mkdir src
cd src
git clone git@github.com:abhardwaj/voicex.git
## make configuration changes ##
# edit django configuration settings
vi http_handler/settings.py
# setup postgres database
psql -U postgres -W -h localhost
create database voicex
# install schema
cd src/voicex
python manage.py syncdb
python manage.py migrate
## running in development mode ##
# start celeryd
python manage.py celeryd
# 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}
# create a celeryd script in /etc/init.d
# set defaults for /etc/defaults/celeryd
CELERYD_CHDIR="/path/to/voicex/"
CELERYD_OPTS="--time-limit=300"
CELERY_CONFIG_MODULE="celeryconfig"