fission-codes / fission-server

Apache License 2.0
9 stars 0 forks source link

chore: Better README & fix `nix run .` #216

Closed matheus23 closed 9 months ago

matheus23 commented 9 months ago

With this you can run the webserver using nix run ., but you'll need to specify the config path (unlike with cargo run), so make sure to pass it like this: nix run . -- -c fission-server/config/settings.toml or wherever your settings file resides.

This also changed the environment variable prefix used from APP to FISSION_SERVER, so e.g. you can set the path to the config file like this, too: FISSION_SERVER__CONFIG_PATH="fission-server/config/settings.toml" nix run ..

codecov[bot] commented 9 months ago

Codecov Report

Attention: 48 lines in your changes are missing coverage. Please review.

Comparison is base (0229b4c) 20.64% compared to head (285a22b) 20.73%.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/fission-codes/fission-server/pull/216/graphs/tree.svg?width=650&height=150&src=pr&token=GO3TTZLDO0&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes)](https://app.codecov.io/gh/fission-codes/fission-server/pull/216?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes) ```diff @@ Coverage Diff @@ ## main #216 +/- ## ========================================== + Coverage 20.64% 20.73% +0.08% ========================================== Files 72 72 Lines 3124 3130 +6 Branches 1909 1914 +5 ========================================== + Hits 645 649 +4 - Misses 1627 1634 +7 + Partials 852 847 -5 ``` | [Files](https://app.codecov.io/gh/fission-codes/fission-server/pull/216?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes) | Coverage Δ | | |---|---|---| | [fission-server/src/settings.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/216?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL3NldHRpbmdzLnJz) | `43.33% <0.00%> (ø)` | | | [fission-server/src/main.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/216?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL21haW4ucnM=) | `0.00% <0.00%> (ø)` | | | [fission-server/src/tracing\_layers/format\_layer.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/216?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL3RyYWNpbmdfbGF5ZXJzL2Zvcm1hdF9sYXllci5ycw==) | `8.61% <0.00%> (-0.22%)` | :arrow_down: | ... and [7 files with indirect coverage changes](https://app.codecov.io/gh/fission-codes/fission-server/pull/216/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes)