Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

local infra setup doesn't work automatically #240

Closed
lu4p opened this issue Jan 15, 2024 · 2 comments
Closed

local infra setup doesn't work automatically #240

lu4p opened this issue Jan 15, 2024 · 2 comments

Comments

@lu4p
Copy link

lu4p commented Jan 15, 2024

I've got this running locally now, but I needed to change these two lines in the Dockerfile to get it to run:

RUN cargo install --locked diesel_cli --no-default-features --features postgres
ENTRYPOINT [ "/usr/local/bin/diesel", "migration", "run", "--migration-dir", "./src/datastore/postgres/migrations", "--database-url", "postgres://postgres:5b79d985-ece8-4345-8f40-bd8ff630a715@db:5432/warg_registry"]

Setting DATABASE_URL in the .env file didn't work.

@calvinrp
Copy link
Collaborator

I recommend following the directions here: https://github.com/bytecodealliance/registry/blob/main/crates/server/README.md

The other infra directory setup may not be correctly wired up and isn't being used.

@calvinrp
Copy link
Collaborator

This was revised in #282

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants