Setup is done using buildout. There is a base configuration file base.cfg that is extended for installing on different environments:
- development.cfg
- testing.cfg
- server.cfg
When installing locally, use development.cfg. Otherwise, fab is used to install the project remotely automatically.
To install locally:
./dev/setup_dev.sh
To run locally:
./bin/django runserver
To run tests:
./bin/django test tradeschool -v 2
To install remotely:
- $ cp fab_config.py.sample fab_config.py
- edit fab_config.py with testing and/or production domains
- edit settings/testing.py and/or settings/server.py with database info and local paths
- $ ./bin/fab <testing|production> initialize_everything
- $ ./bin/fab <testing|production> deploy