Most openlibrary operations are modeled as setup.py commands.
Bootstraps the dev instance.
$ python setup.py bootstrap
Bootstrap command is explained in bootstrap.
Starts all the OL services.:
$ python setup.py start
This command starts supervisord using configuration from conf/supervisor/linux.ini or conf/supervisor/macosx.ini based on the platform.
Logs of the services are written to var/log.
Start a bash shell with the env required for running all OL scripts.
$ python setup.py shell
This starts a bash shell with conf/bashrc as rc file.
Runs all the test cases.
$ python setup.py test
Behind the scenes it runs scripts/runtests.sh.
Builds the sphinx docs.
$ python setup.py build_sphinx
The docs will be generated in build/sphinx/html/.
The custom setup.py commands are implemented in setup_commands.py.
To know more about how to add custom setuptools commands, see: