You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I want to have a one step command to run a full local development environment. I believe one exists, but I'm a novice when it comes to nix.
When I perform nix run, I see the following output:
(devenv) [fbyrne@flax kitsune]$ nix run
error: the following required arguments were not provided:
--config <CONFIG>
Usage: kitsune --config <CONFIG>
To Reproduce
Steps to reproduce the behavior:
go to the root directory of the project.
run nix run
Expected behavior
I'm expecting the project to use some default local configuration like config.example.toml to connect to a local instance of postgres and redis.
Version
The version of Kitsune you're running (version and Git commit)
So at this point the issue is the database isn't setup, but I can connect.
cargo run --bin kitsune -- --config config.example.toml
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.26s
Running `target/debug/kitsune --config config.example.toml`
Error:
0: Failed to connect to and migrate the database
1: database "kitsune" does not exist
Location:
/home/fbyrne/kitsune/crates/kitsune-db/src/lib.rs:41
nix run only builds the package and then passes all remaining arguments to the program. It's not Nix's job here to figure out defaults. On a different note, the NixOS module also seems to be missing --config here: https://github.com/kitsune-soc/kitsune/blob/main/nix/module.nix#L106 but I haven't gotten that working for unrelated reasons - this is mostly guesswork.
Describe the bug
I want to have a one step command to run a full local development environment. I believe one exists, but I'm a novice when it comes to nix.
When I perform
nix run
, I see the following output:To Reproduce
Steps to reproduce the behavior:
nix run
Expected behavior
I'm expecting the project to use some default local configuration like
config.example.toml
to connect to a local instance ofpostgres
andredis
.Version
The version of Kitsune you're running (version and Git commit)
276f865
Not sure how to get the version of kitsune.
The text was updated successfully, but these errors were encountered: