forked from anantb/voicex
/
README
71 lines (48 loc) · 1.48 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
##### 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"