-
Notifications
You must be signed in to change notification settings - Fork 2
Installation
Christina Ludwig edited this page Apr 7, 2023
·
1 revision
git clone
cd WePledge
git submodule update --init --recursive
docker compose up
Before rebuilding all backend docker containers, do the following:
- Delete all files except for the
__init__.py
file in the folder ./WePledge/backend/src/emissions/migrations. - Delete all backend containers (wepledge_pgadmin_1, wepledge_backend_1 and db)
- Run
docker volume prune
to delete the database. - Run `docker compose up´.
The backend container won't build correctly, because Module not found django_extensions
.
Solution: Delete all containerst and images. Then run docker volume prune
to delete all data associated with them.
When registering a new user, sending the activation email fails.
Solution: Add the EMAIL_FROM
variable to settings.py
(see Django-Graphql_Auth Docs)
GRAPHQL_AUTH = {
'LOGIN_ALLOWED_FIELDS': ['email', 'username'],
'SEND_ACTIVATION_EMAIL': True,
'EMAIL_FROM': 'no-reply@pledge4future.org',
}
Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init cau
sed: rootfs_linux.go:76: mounting "/run/desktop/mnt/host/c/Users/ninak/Documents/pledge4future/git1/WePledge/.env" to rootfs at "/home/python/app/src/.env
" caused: mount through procfd: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host pat
h exists and is the expected type
Solution:
- Make sure the .env file in
./WePledge
exists. If not create it. - Delete all folders which were created by docker called
.env
in./WePledge
and./WePledge/backend/src
. - Delete all containers, images and volumes and run
docker compose up --build
again.
Solution:
- Open ./backend/src/entrypoint.sh and ./frontend/entrypoint.sh in notepad++
- Go to edit -> EOL conversion -> change both from CRLF to LF.
- Save the files.
Do the following to build the docker images, containers and volume from scratch to avoid errors:
- Delete all files except for the init.py in the folder ./WePledge/backend/src/emissions/migrations.
- Delete all backend containers (wepledge_pgadmin_1, wepledge_backend_1 and db)
- Run
docker volume prune
to delete the volumes associated witch the deleted containers. - Run
docker compose up --build
to rebuild the images.