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

Dioxus-cli ignores env variables in .cargo/config.toml #2384

Closed
ochrons opened this issue May 2, 2024 · 2 comments
Closed

Dioxus-cli ignores env variables in .cargo/config.toml #2384

ochrons opened this issue May 2, 2024 · 2 comments

Comments

@ochrons
Copy link

ochrons commented May 2, 2024

Problem

In my project I have defined env variables for the server (database URL etc) in .cargo/config.toml file and if I run the fullstack app with cargo run --features server the environment is correctly set up. However, if running it with dx serve, none of the env variables are set.

Steps To Reproduce

Steps to reproduce the behavior:

  • create a .cargo/config.toml with an [env] section and define some environment variables
  • run the project wth dx serve
  • the env variables are not set for the server executable

Expected behavior

Should work the same as cargo run

Environment:

  • Dioxus version: 0.5.4 (cli)
  • Rust version: 1.76
  • OS info: Win11 WSL2 Ubuntu
  • App platform: fullstack
@ochrons
Copy link
Author

ochrons commented May 2, 2024

#2259 might be related

@ochrons ochrons changed the title Dioxus-cli ignores env variables in `.cargo/config.toml' Dioxus-cli ignores env variables in .cargo/config.toml May 2, 2024
@DogeDark
Copy link
Member

DogeDark commented May 3, 2024

Yes, it looks like the same issue. I'm going to close this in favor of #2259 and PR #2372. Thanks for the report!

@DogeDark DogeDark closed this as not planned Won't fix, can't repro, duplicate, stale May 3, 2024
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