From dd856a2d348915b8aa71910978164ab9347df390 Mon Sep 17 00:00:00 2001 From: Frithjof Winkelmann Date: Sun, 22 Sep 2024 13:46:24 +0200 Subject: [PATCH] Test deployment --- .github/workflows/main.yml | 3 ++- backend/download_data.sh | 32 +++++++++++++++----------------- frontend/src/App.tsx | 8 ++++---- 3 files changed, 21 insertions(+), 22 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fc8c7a5..1018163 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,8 +38,9 @@ jobs: script: | # Stop running container docker stop hoff97hikeandfly - # Remove old container + # Remove old container and image, pull new image docker rm hoff97hikeandfly + docker image rm hoff97/hikeandfly docker pull hoff97/hikeandfly:latest # Run a new container from a new image docker run -d \ diff --git a/backend/download_data.sh b/backend/download_data.sh index a20e1b8..125bd33 100755 --- a/backend/download_data.sh +++ b/backend/download_data.sh @@ -2,26 +2,24 @@ mkdir ./data cd data -#wget http://viewfinderpanoramas.org/dem1/M32.zip -#wget http://viewfinderpanoramas.org/dem1/M33.zip -#wget http://viewfinderpanoramas.org/dem1/L31.zip +wget http://viewfinderpanoramas.org/dem1/M32.zip +wget http://viewfinderpanoramas.org/dem1/M33.zip +wget http://viewfinderpanoramas.org/dem1/L31.zip wget http://viewfinderpanoramas.org/dem1/L32.zip -#wget http://viewfinderpanoramas.org/dem1/L33.zip +wget http://viewfinderpanoramas.org/dem1/L33.zip -#unzip M32.zip -#unzip M33.zip -#unzip L31.zip +unzip M32.zip +unzip M33.zip +unzip L31.zip unzip L32.zip -#unzip L33.zip +unzip L33.zip -#mv M32/*.hgt ./ -#mv M33/*.hgt ./ -#mv L31/*.hgt ./ -#mv L32/*.hgt ./ -#mv L33/*.hgt ./ +mv M32/*.hgt ./ +mv M33/*.hgt ./ +mv L31/*.hgt ./ +mv L32/*.hgt ./ +mv L33/*.hgt ./ -mv L32/N47E011.hgt ./ -#rm M32.zip M33.zip L31.zip L32.zip L33.zip -rm L32.zip -rm -rf L32/ +rm M32.zip M33.zip L31.zip L32.zip L33.zip +rm -rf M32/ M33/ L31/ L32/ L33/ diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index dc95b71..7e943db 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -415,13 +415,13 @@ function SettingsCard({ settings, setSettings, setImageState, setGrid, grid }: S onChange={setWindDirection} value={settings.windDirection} labelStepSize={90} stepSize={15}> Safety margin: - + labelStepSize={40} stepSize={10}> Start distance: - + labelStepSize={50} stepSize={10}> {grid !== undefined ?