1.0 KiB
1.0 KiB
Common Issues & Questions
Environment
Postgres Database
The database login-details are set upon first-launch. Therefore trying to change them later, after first-launch, will require a change of these details. A way of sidestepping manually changing this in the DB-shell is by deleting the postgres data volume.
Warning
Do not run this command in prod, it will delete ALL data in our database.
docker volume rm quatsh-website_postgres-data
After running this command a Django Migration has to be run to remake the tables.
docker exec quatsh-website-web-1 python manage.py migrate
Make - errors
If you see an error looking as follows docker isn't actually running.
PS C:\*\Quatsh-Website> docker compose ls
error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.50/containers/json?filters=%7B%22label%22%3A%7B%22com.docker.compose.config-hash%22%3Atrue%2C%22com.docker.compose.project%22%3Atrue%7D%7D": open //./pipe/dockerDesktopLinuxEngine: The system cannot find the file specified.