✨ Expand config search area
This commit is contained in:
parent
515f086f19
commit
0b38c4a470
@ -8,11 +8,6 @@ COPY . .
|
|||||||
ENV RUSTFLAGS="-C target-feature=-crt-static"
|
ENV RUSTFLAGS="-C target-feature=-crt-static"
|
||||||
RUN cargo build --release
|
RUN cargo build --release
|
||||||
|
|
||||||
# Runtime
|
|
||||||
FROM alpine:latest
|
|
||||||
|
|
||||||
COPY --from=roadsign-server /source/target/release/roadsign /roadsign/server
|
|
||||||
|
|
||||||
EXPOSE 81
|
EXPOSE 81
|
||||||
|
|
||||||
CMD ["/roadsign/server"]
|
CMD ["/source/target/release/roadsign"]
|
@ -3,6 +3,7 @@ use config::Config;
|
|||||||
pub fn load_settings() -> Config {
|
pub fn load_settings() -> Config {
|
||||||
Config::builder()
|
Config::builder()
|
||||||
.add_source(config::File::with_name("Settings"))
|
.add_source(config::File::with_name("Settings"))
|
||||||
|
.add_source(config::File::with_name("/Settings"))
|
||||||
.add_source(config::Environment::with_prefix("ROADSIGN"))
|
.add_source(config::Environment::with_prefix("ROADSIGN"))
|
||||||
.build()
|
.build()
|
||||||
.unwrap()
|
.unwrap()
|
||||||
|
Loading…
Reference in New Issue
Block a user