-
Notifications
You must be signed in to change notification settings - Fork 10
Setting up Courselets with Docker
karluxd edited this page Dec 3, 2018
·
4 revisions
$ git clone git@github.com:cjlee112/socraticqs2.git courselets
$ cd courselets
$ cp mysite/mysite/settings/local_example.py mysite/mysite/settings/local.py
- Remove the
DATABASES
object fromlocal.py
(lines 15-24). $ docker-compose up
- Wait until the server is running and open a new tab in the terminal.
$ docker exec -it courselets bash
$ python manage.py migrate --settings=mysite.settings.docker
$ python manage.py loaddata dumpdata/debug-wo-fsm.json --settings=mysite.settings.docker
$ 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.