Closed gperdomor closed 7 years ago
Thank you for your interest in the project! Can you provide some steps (what you did) to reproduce your error?
Hi @mujx...
script/cargo build
script/cargo run -- secret
ruma.yaml
on root of repository
script/cargo run -- run
I'm using macOS Sierra and the last Docker version
Ruma needs a postgres instance; that's the cause of the error. Currently ruma isn't ready for use so we don't have a script to run it.
You can use docker-compose run postgres
to bring up a postgres database and change postgres://postgres:test@localhost:5432/ruma
to postgres://postgres:test@postgres:5432/postgres
in your ruma.yml
file to use the defaults. You can always change them from the docker-compose file.
Closing as resolved. Please follow up with a comment if the problem persists.
@mujx well i made some changes in docker-compose.yml
:
version: "2"
services:
rust:
build: ./docker/
links:
- "postgres"
ports:
- "3000:3000" # NEW BUT NOT WORK xD
volumes:
- ".:/source"
- "cargo_git:/root/.cargo/git"
- "cargo_registry:/root/.cargo/registry"
postgres:
image: "postgres"
ports:
- "5432:5432" # NEW
environment:
- "POSTGRES_DB=ruma" # NEW
- "POSTGRES_USER=user" # NEW
- "POSTGRES_PASSWORD=test"
volumes:
cargo_git: {}
cargo_registry: {}
I can connect to postgres but i can't connect to ruma... I browse to localhost:3000 but not works
I managed to get this working on my machine with the following configs. Just run docker-compose up
. Let me know if that also works for you. You can verify with netstat -antp
or similar if the 3000
port is open.
docker-compose.yaml
version: "2"
services:
rust:
image: "rumaio/ruma-dev@sha256:75a38913b7b325c47e115d5c5808efa8a309882288f91ee4ce4c077ef89213c3"
links:
- "postgres"
ports:
- "3000:3000"
command: "cargo run -- run"
environment:
- "RUST_LOG=info"
depends_on:
- "postgres"
volumes:
- ".:/source"
- "cargo_git:/root/.cargo/git"
- "cargo_registry:/root/.cargo/registry"
postgres:
image: "postgres"
ports:
- "5432:5432"
environment:
- "POSTGRES_PASSWORD=test"
- "POSTGRES_DB=ruma"
- "POSTGRES_USER=user"
volumes:
cargo_git: {}
cargo_registry: {}
ruma.yaml
version: "1"
domain: "localhost"
macaroon_secret_key: "Ctr/mkMHebQ4OlqZNdB34exmNT/u1YY9+Hulor6XNWY="
postgres_url: "postgres://user:test@postgres:5432/ruma"
bind_port: "3000"
The port is open but...
localhost:3000/ruma/swagger.json
not working either
You need the bind_address: "0.0.0.0"
in your ruma.yaml
to listen to all interfaces.
thanks... It's working now... Please update the docs :D
hi, i tried to run RUMA in a localhost enviroment but i get this error:
This is my ruma.yml file: