Skip to content

Setting up Courselets with Docker

karluxd edited this page Dec 3, 2018 · 4 revisions
  1. $ git clone git@github.com:cjlee112/socraticqs2.git courselets
  2. $ cd courselets
  3. $ cp mysite/mysite/settings/local_example.py mysite/mysite/settings/local.py
  4. Remove the DATABASES object from local.py (lines 15-24).
  5. $ docker-compose up
  6. Wait until the server is running and open a new tab in the terminal.
  7. $ docker exec -it courselets bash
  8. $ python manage.py migrate --settings=mysite.settings.docker
  9. $ python manage.py loaddata dumpdata/debug-wo-fsm.json --settings=mysite.settings.docker
  10. $ python manage.py fsm_deploy --settings=mysite.settings.docker

All done, you can close the second tab in the terminal and open http://0.0.0.0:8000 in a browser.

Clone this wiki locally