Closed julesDesjardin closed 7 months ago
It should've been mix setup
, I corrected the readme. This also creates the database, so that's why it had issues connecting.
I double-checked that Docker works for me locally. I think the issue may be that you tried to setup without Docker, which created some download/compile artefacts. The Docker setup also mounts the whole directory into the container, so sometimes there can be weird permission issues or similar if the files are already there.
You can remove the build files rm -rf _build deps client/node_modules
and try either of the approaches again. If there are still issues, let me know :)
Nevermind, I pulled a clean repo again and the Docker worked :)
I guess my initial mistake was to run it in sudo
, it must have damaged the repo somehow, but after adding permissions to Docker so I could run it without sudo, it seems to work perfectly!
Hi,
To develop a tool using WCA Live I would like to have a local copy so I can run tests on it. I have tried both the local and the Docker method, but both fail.
In local, when running
mix dev.setup
, it looks like it compiles the code properly then gives a** (Mix) The task "dev.setup" could not be found
error. Runningmix phx.server
gives an authentication error for the PostgreSQL database, and then fails because it can't connect to the DB.With docker, the output is quite longer. Here are the interesting parts I have tried to isolate:
And later
app-1 | sh: 1: vite: not found
Opening port 3000 doesn't work (the browser says the connection reset), and on port 4000 I get the following screenshot + the following output in the terminal:
I'm using Ubuntu 22.04.2 LTS. I'm not familiar with Elixir so please tell me if you need more info from my side.
Thanks! Jules