XiVO unified is a proof of concept for the futur of XiVO and vision of the telephony in entreprise.
- apt-get install python-virtualenv python-pip rabbitmq-server libpython-dev couchdb libldap2-dev libsasl2-dev postfix
- virtualenv xivo-unified
- source xivo-unified/bin/activate (activate the virtualenv)
- pip install -r requirements.txt (install the dependences, go to the root of the sources)
- python ./run.py run (launch the application)
- python ./runcelery.py worker (launch the task process)
.. warning:: The DEBUG settings in conf.py need to be true for the moment because we using the reload system from flask in debug mode for the market.
For configuration with nginx, please install uwsgi 1.9 min and supervisor
- apt-get install supervisor nginx
- apt-get install libc-dev gcc python-dev (to compile uwsgi you need)
- pip install uwsgi
Copy sources into /usr/share/nginx/www/xivo-unified
- cp <xivo_unified_sources> /usr/share/nginx/www/
- chown www-data.www-data /usr/share/nginx/www/xivo-xivo-unified -R
Nginx
- cd SOURCES/conf/nginx
- cp xivo /etc/nginx/sites-available/
- mkdir /etc/nginx/ssl
- cp server* /etc/nginx/ssl
- ln -s /etc/nginx/sites-available/xivo /etc/nginx/sites-enabled/xivo
- service nginx restart
Supervisor
- cd SOURCES/conf/supervisor
- cp * /etc/supervisor/conf.d/
- service supervisor stop
- service supervisor start
- apt-get remove --purge libc-dev-bin libc6-dev linux-libc-dev gcc libexpat1-dev libssl-dev python-dev python2.7-dev zlib1g-dev libpython-dev libldap2-dev libsasl2-dev
In source root, launch alembic upgrade head.
You need to patch PluginManager.py in yapsy.
Line 483 : candidate_module = imp.load_module('app.plugins.' + plugin_info.name,None,candidate_filepath,("py","r",imp.PKG_DIRECTORY))