-
Let's say I have the following configuration in [default.databases.main]
url = "data.db" How do I change it via an environment variable? I tried this (with no luck): ROCKET_DATABASES_MAIN_URL=newdb cargo run Indeed, database URL is just an example, my real use case is adding sensitive data such as API keys, which shouldn't be laying in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
There are a few examples of configuration via environment variables in the crate-level documentation for (It happens to be identical for 0.4: |
Beta Was this translation helpful? Give feedback.
There are a few examples of configuration via environment variables in the crate-level documentation for
rocket_sync_db_pools
androcket_db_pools
, both of which will be in the 0.5 release.(It happens to be identical for 0.4:
rocket_contrib::databases
).