To run control you must have the follow installed:
- Python 2.6+
- virtualenv 1.4.7+
- Fabric 1.1.0
Create a virtual environment where control dependencies will live:
$ virtualenv --no-site-packages iftek
$ source {path_to_virtual_envs}/control/bin/activate
(control)$
Install control project dependencies:
(iftek)$ pip install -r conf/requirements_dev.txt
Create database
$ ./createdb.sh
Create tables
$ ./syncdb.py
Iftek PaaS uses fabric to manage deployment. Specify the hostname of your ubuntu server in fabfile.py and run
$ fab setup
That command will setup apache, mysql, python, and checkout the app to the server.
The iftek paas need root rights in order to check / create linux users. Because of the virtualenv you should run it like:
$ sudo ~/.virtualenvs/paas/local/bin/python ./paas.py
Or with the provided script, change the python path in that file so it fits your environment:
$ ./sudo_python paas.py
Before working with, e.g., the models in a Python session, the settings must be specified.
$ export SETTINGS=./conf/settings.cfg
In production all error messages are emailed to the admins. Admins is a list in ./conf/settings.cfg.