problem to run Jandig ARte
Closed this issue · 6 comments
Describe the bug
Cannot run Jandig ARte
To reproduce the bug
Steps to reproduce the behavior:
- Clone this Repo
- Navigate to "/Janding/src/.envs"
- Create a ".env" file
- Copy the content of ".example" and paste in ".env"
- Navigate to "/Janding"
- Run docker-compose passing the docker-compose.yml
Expected behavior
Jandig ARte server would run at localhost.
Please, tell us which device/browser (with versions) are used when finding the bug:
- OS: [Windows 11, Ubuntu 20.04]
- Browser: [ex.: Chrome 91.0.4472.114]
Any update about this issue @eddie-gomes ?
Update
@GustavoAPS suggested that We try to run the command docker build
before run docker-compose -f docker/docker-compose.yml up
, and with these additional step the project runs, but without any visual resource (Image 1)
A code maintainer told us that if We change the env DEV_STATIC
to "True", the resources should load, but when We change the value of the env var to True We got another error ModuleNotFoundError: No module named 'whitenoise'
.
@sudjoao There are still two problems relevant to run the project after this step, the databse will give you an error about migrations and as you said the visual resources are missing.
Update
@GustavoAPS suggested that We try to run the command
docker build
before rundocker-compose -f docker/docker-compose.yml up
, and with these additional step the project runs, but without any visual resource (Image 1)A code maintainer told us that if We change the env
DEV_STATIC
to "True", the resources should load, but when We change the value of the env var to True We got another errorModuleNotFoundError: No module named 'whitenoise'
.
To run JandigARte, before all these steps we need change the '.env' file in "src/.envs", adding something in "DJANGO_SECRET_KEY" (i.e.: '123')
To solve the backend issue with migrations do the following:
1 - Run the container.
2 - Open a new terminal and list the containers with "docker ps"
3 - Enter the project container with "docker exec -it docker_django_1 bash"
4 - Inside the container make the migrations with: "python3 src/ARte/manage.py migrate"
5 - After the migrations the problem is solved as you can see in the below.