copy config
This commit is contained in:
parent
a335f14b14
commit
58e2097016
3 changed files with 12 additions and 1 deletions
|
|
@ -19,6 +19,7 @@ WORKDIR /app
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
COPY --from=build /api/target/release/septastic_api /app/septastic_api
|
COPY --from=build /api/target/release/septastic_api /app/septastic_api
|
||||||
|
COPY --from=build /api/config.yaml /app/config.yaml
|
||||||
COPY api/assets /app/assets
|
COPY api/assets /app/assets
|
||||||
COPY api/templates /app/templates
|
COPY api/templates /app/templates
|
||||||
|
|
||||||
|
|
|
||||||
10
api/config.yaml
Normal file
10
api/config.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
gtfs_zips:
|
||||||
|
- uri: "https://www3.septa.org/developer/gtfs_public.zip"
|
||||||
|
subzip: "google_rail.zip"
|
||||||
|
- uri: "https://www3.septa.org/developer/gtfs_public.zip"
|
||||||
|
subzip: "google_bus.zip"
|
||||||
|
# - uri: "https://www.njtransit.com/rail_data.zip"
|
||||||
|
# - uri: "https://www.njtransit.com/bus_data.zip"
|
||||||
|
annotations:
|
||||||
|
synthetic_routes:
|
||||||
|
- id: 'NYC'
|
||||||
|
|
@ -78,7 +78,7 @@ async fn main() -> ::anyhow::Result<()> {
|
||||||
let version: &str = option_env!("CARGO_PKG_VERSION").expect("Expected package version");
|
let version: &str = option_env!("CARGO_PKG_VERSION").expect("Expected package version");
|
||||||
info!("Starting the SEPTASTIC Server v{} (commit: {})", version, "NONE");
|
info!("Starting the SEPTASTIC Server v{} (commit: {})", version, "NONE");
|
||||||
|
|
||||||
let mut file = File::open("../data_loader/config.yaml")?;
|
let mut file = File::open("./config.yaml")?;
|
||||||
let mut file_contents = String::new();
|
let mut file_contents = String::new();
|
||||||
file.read_to_string(&mut file_contents);
|
file.read_to_string(&mut file_contents);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue