Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

jakobadam/iftek-paas

Repository files navigation

Iftek Pass

Installation

To run control you must have the follow installed:

  • Python 2.6+
  • virtualenv 1.4.7+
  • Fabric 1.1.0

Setting up environment

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

Deployment

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.

Running a local web 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

Working in the production environment

Before working with, e.g., the models in a Python session, the settings must be specified.

$ export SETTINGS=./conf/settings.cfg

Errors Notifications

In production all error messages are emailed to the admins. Admins is a list in ./conf/settings.cfg.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published