4
Development environments can be set of using the setup.py files in the
5
projects you wish to work on. The easiest approach is to use python-virtualenv::
8
. /tmp/venv/bin/activate
11
Unit-testing can be done with::
13
python -m unittest imagebuilder.tests.test_api_v1
15
Running under the python wsgi server can be done with::
17
./imagebuilder/wsgi.py
19
Running under gunicorn can be done with::
24
# TIP: by setting max-requests=1 you can make changes to the source code
25
# and they'll be picked up in the next http request you make!!
26
gunicorn --max-requests 1 imagebuilder.wsgi:app
31
Each service should include a juju-deployer config under the juju-deployer