Skip to content

Commit

Permalink
Test deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoff97 committed Sep 22, 2024
1 parent 9e6da25 commit dd856a2
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
32 changes: 15 additions & 17 deletions backend/download_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
8 changes: 4 additions & 4 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -415,13 +415,13 @@ function SettingsCard({ settings, setSettings, setImageState, setGrid, grid }: S
onChange={setWindDirection} value={settings.windDirection}
labelStepSize={90} stepSize={15}></Slider>
Safety margin:
<Slider initialValue={0} min={0} max={500}
<Slider initialValue={0} min={0} max={200}
onChange={setSafetyMargin} value={settings.safetyMargin}
labelStepSize={100} stepSize={10}></Slider>
labelStepSize={40} stepSize={10}></Slider>
Start distance:
<Slider initialValue={0} min={0} max={1000}
<Slider initialValue={0} min={0} max={300}
onChange={setStartDistance} value={settings.startDistance}
labelStepSize={200} stepSize={20}></Slider>
labelStepSize={50} stepSize={10}></Slider>
{grid !== undefined ? <Button text="Rerun from current location" onClick={rerun} /> : <></>}
</SectionCard>
</Section>
Expand Down

0 comments on commit dd856a2

Please sign in to comment.