Run debug celery beat scheduler

Run debug tests

Development data

For development efficiency a dummy company can be loaded into the database from fixtures/development.json. To do this run:

$ make loaddata

To update fixtures/development.json with the current contents of the database run:

$ make dumpdata

Then check the contents of fixtures/development.json.

SSO

To make sso work locally add the following to your machine's /etc/hosts:

IP Adress

URL

127.0.0.1

buyer.trade.great.dev

127.0.0.1

supplier.trade.great.dev

127.0.0.1

sso.trade.great.dev

127.0.0.1

api.trade.great.dev

127.0.0.1

profile.trade.great.dev

127.0.0.1

exred.trade.great.dev

Then log into directory-sso via sso.trade.great.dev:8001, and use directory-ui-supplier on buyer.trade.great.dev:8001

Note in production, the directory-sso session cookie is shared with all subdomains that are on the same parent domain as directory-sso. However in development we cannot share cookies between subdomains using localhost - that would be like trying to set a cookie for .com, which is not supported by any RFC.

Therefore to make cookie sharing work in development we need the apps to be running on subdomains. Some stipulations:

directory-ui-supplier and directory-sso must both be running on sibling subdomains (with same parent domain)