Closed BenjMaq closed 4 years ago
@BenjMaq, I will take a look at it tonight. I was able to setup with the guide from scratch before, but I will try again. It should just be the few docker commands and setting up the .env file. It seems like it might be an issue with the docker connection. Are you able to run docker without any errors? Check docker-compose logs
Hey, yes I checked the logs and the error is the same as the above one:
Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Also, it would be great to have a guide on how to setup the .env
file. For someone clueless of Django
and Postgres
like me, it's really not clear what to do to fill the .env
file.
What do I need to add there?
NAME=
DATABASE=postgres
DB_HOST=
PASSWORD=
DISABLE_COLLECTSTATIC=1
PORT=5432
SECRET_KEY=
Hey, yes I checked the logs and the error is the same as the above one:
Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Also, it would be great to have a guide on how to setup the
.env
file. For someone clueless ofDjango
andPostgres
like me, it's really not clear what to do to fill the.env
file.What do I need to add there?
NAME= DATABASE=postgres DB_HOST= PASSWORD= DISABLE_COLLECTSTATIC=1 PORT=5432 SECRET_KEY=
Okay I think I know what your issue is. I forgot to upload the new .env.template file. I uploaded the correct one last night. So pull down the new changes and update your env file
Hey, yes I checked the logs and the error is the same as the above one:
Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Also, it would be great to have a guide on how to setup the
.env
file. For someone clueless ofDjango
andPostgres
like me, it's really not clear what to do to fill the.env
file.What do I need to add there?
NAME= DATABASE=postgres DB_HOST= PASSWORD= DISABLE_COLLECTSTATIC=1 PORT=5432 SECRET_KEY=
Okay I think I know what your issue is. I forgot to upload the new .env.template file. I uploaded the correct one last night. So pull down the new changes and update your env file. @marcorichetta what did your local .env file look like?
@BenjMaq the new .env.template has the two environment variables that connect to docker. That's the part your missing.
I have rebased this morning so this is definitely not the issue. I just don’t know how should I fill the .env file?
The .env.template
file has a lot of env variable empty, like
NAME=
DB_HOST=
PASSWORD=
SECRET_KEY=
A guide on what to fill in there would be useful
Hey,
I think there are a few things missing in the setup guide. Currently, it does not work for a completely new contributor. I've kept track of the few things I've had to do manually, and I'll push a PR once I'm able to get everything working.
In the meantime, I'm facing an issue when running command
./manage.py loaddata bounce_data.json
I also tried
python ./manage.py loaddata bounce_data.json
but then I haveCan you help @cfahlgren1 ? Thanks