Overview

Dependencies

  • Pylons 0.9.7
  • mysql-python
  • SqlAlchemy 0.5.3
  • BeautifulSoup
  • python-cjson

Installation and Setup

  1. Install Tokyo Cabinet and Tyrant:

  2. Configure your server:

    • sudo apt-get install python-setuptools
    • sudo apt-get install python-cjson
  3. Configure 6diagrams:

    • Go to 6diagrams root path.
    • cp six_diagrams/config/development.ini.example development.ini cp six_diagrams/config/test.ini.example test.ini cp six_diagrams/config/production.ini.example production.ini cp six_diagrams/config/production.simple.ini.example production.simple.ini
    • sudo easy_install .
    • Inside MySQL, execute this query:

    create database six_diagrams

    • paster mysql development/test/production create

    This command will create mysql database tables (Type paster for list of full commands)

    • paster populator production

    This command will create a main Forum object and super user account.

Running

  1. It is recommended to run 6diagrams behind nginx. * sudo apt-get install nginx

    • Starts nginx with given config file:

    (You can tweak the config file to your liking) sudo nginx -c six_diagrams/server_conf/nginx.simple.conf

  2. The simple way of running 6diagrams server: On 6diagrams.org directory, run: paster serve --reload production.simple.ini

  3. The more robust way of running 6diagrams server: On 6diagrams.org directory, run: paster servers start

    Above command means: Starts 6diagrams servers to be load balanced behind nginx.