simplworld / simpl-games-api

An open source platform for creating amazing games and simulations
https://simpl.world/
GNU General Public License v2.0
7 stars 5 forks source link

Fix local databases #39

Closed janeeisenstein closed 3 years ago

janeeisenstein commented 3 years ago

Makes local DATABASES settings non-Docker specific.

janeeisenstein commented 3 years ago

Adding a docker-compose settings file wasn't enough to support running in Docker. Was able to run migrations and create simpl users by running export DJANGO_SETTINGS_MODULE=config.settings.compose in the simpl-games-api shell.

However, subsequent docker-compose up runs error out with:

api_1        | psycopg2.OperationalError: could not connect to server: No such file or directory
api_1        |  Is the server running locally and accepting
api_1        |  connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
janeeisenstein commented 3 years ago

Decided to back off this effort until we can agree on goals.