From 76a242f58b68c03180a9b3a181a72f15b956d067 Mon Sep 17 00:00:00 2001 From: wserr Date: Sun, 7 May 2023 13:43:37 +0200 Subject: [PATCH] Modified docker run script --- microservices/weather/.gitignore | 3 +++ microservices/weather/run-docker.sh | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/microservices/weather/.gitignore b/microservices/weather/.gitignore index 80bb9dd..f5b3191 100644 --- a/microservices/weather/.gitignore +++ b/microservices/weather/.gitignore @@ -17,3 +17,6 @@ Cargo.lock Settings.toml .env + +# Log files +logs.*.txt diff --git a/microservices/weather/run-docker.sh b/microservices/weather/run-docker.sh index cbacc31..43c1d3a 100755 --- a/microservices/weather/run-docker.sh +++ b/microservices/weather/run-docker.sh @@ -1,3 +1,4 @@ #!/usr/bin/env bash +file=logs.$(date "+%F").txt -docker run --env RUST_LOG=info --env-file ./.env registry.willemserruys.com/weather-microservice:latest &> logs.txt +docker run --env RUST_LOG=info --env-file ./.env registry.willemserruys.com/weather-microservice:latest &> $file