Closed ctkcoding closed 4 months ago
Hi @ctkcoding! Thank you for opening this issue. Sorry the README has inadequate Docker instructions. I have now updated them, so hopefully they make more sense. Here is the updated readme: https://github.com/mataroa-blog/mataroa/blob/3daa50897373e5e40d997a6b23d7f206d98bd96f/README.md#development
There is probably something missing in your configuration, the subdomain/hosts set up. See instructions on how to fix this here: https://github.com/mataroa-blog/mataroa/blob/3daa50897373e5e40d997a6b23d7f206d98bd96f/README.md#set-up-subdomains
Essentially, because mataroa works primarily with subdomains, one cannot access the basic web app using the standard http://127.0.0.1:8000
/http://localhost:8000
/http://0.0.0.0:8000
URLs. To make it work, we have to add a few custom entries on our /etc/hosts system file. The instruction link above describes how to do that.
Let me know if that's helpful!
I had the same problem with the Docker setup, but it worked just fine running python manage.py runserver
outside the container. I'll try to investigate why this happens.
From what I could gather, you don't have LOCALDEV
set to 1
if you follow step-by-step of the documentation. If you are still interested on this, try hardcoding LOCALDEV = 1
on settings.py
and see if it works.
@sirodoht We can either set it to 1
by default on the docker-compose.yml
file or set env_file: .envrc
.
Setting up for the first time and made the .envrc edits listed in the readme. I ran
docker-compose up -d
and the postgres and mataroa containers are booting and health, but after the mataroa-web container boots I'm unable to reach it on the port that I've set aside for it. I'm seeing my requests to any url/path show in the logs but I can't get anything but a 400. Is there some env var that I could have missed setting up here?