docker ps
to find what it is named. You can also connect to it without typing terminal commands if you download Docker Desktop.docker 19.03.x
is used in these instructions). Follow the instructions from official Docker doc. This will require you to create a docker account if you do not already have one.docker-compose 1.25.x
) from here (If not already installed with docker).sudo
. To enable docker without sudo
, follow this official post-installation doc.*ubyssey.ca/ubyssey/static/
ubyssey.ca/ubyssey/static/node_modules
by running rm -rf node_modules
exit
to exit from this containerubyssey-dev
docker containerlocalhost:8000
and localhost:8000/admin
to view ubyssey.ca and dispatch running from your ubyssey-dev docker container.ubyssey-dev/ubyssey.ca/media/
. This will make it so the images attached to the sample articles are viewable.http://localhost:8000/admin/
[email protected]
, password is volunteer
docker-compose.yml
to allow our ubyssey-dev
container to connect with pdb. Make sure the django container looks like the following.docker-compose up
.import pdb
to the .py file you are interested in debugging, and set a breakpoint with pdb.set_trace()
.ubyssey-dev
container.