-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
42 lines (30 loc) · 1.28 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
install:
sudo apt install \
binutils \
libproj-dev \
gdal-bin
build:
cd server; docker build -t joram87/terraintostl .
run: build
docker run -it -p 8000:8000 -e API_URL="http://localhost:8000" -v ${PWD}/data:/data -v ${PWD}/stls:/stls -v ${PWD}/server:/app joram87/terraintostl
run_web:
cd web_app; npm i
cd web_app; npm start
bash: build
docker run -it -v ${PWD}/data:/data -v ${PWD}/stls:/stls -v ${PWD}/server:/app joram87/terraintostl bash
build_peaks: build
docker run -it -v ${PWD}/data:/data -v ${PWD}/stls:/stls -v ${PWD}/server:/app joram87/terraintostl ./server/peaks.py
reduce: build
docker run -it -v ${PWD}/data:/data -v ${PWD}/stls:/stls joram87/terraintostl python ./stl_generator/stl_util.py
deploy_web:
cd web_app; npx update-browserslist-db@latest
cd web_app; npm run build
aws s3 sync ./web_app/build/ s3://terraintostl.com/
aws cloudfront create-invalidation --distribution-id=E23GF0NWEKO4ST --paths=/index.html
deploy_server: build
docker push joram87/terraintostl
ssh 192.168.1.222 "cd projects/nas; docker compose pull terraintostl; docker compose stop terraintostl; docker compose up -d terraintostl; docker compose logs -f terraintostl"
tail_logs:
ssh 192.168.1.222 "cd projects/nas; docker compose logs -f terraintostl"
ssh_server:
ssh 192.168.1.222