Aggiorna README.md
This commit is contained in:
parent
9b2b64766c
commit
1ff7d20a43
1 changed files with 10 additions and 51 deletions
61
README.md
61
README.md
|
@ -1,10 +1,9 @@
|
||||||
# GPX Studio nuovo
|
# Favicon
|
||||||
|
|
||||||
[original githuh](https://github.com/gpxstudio/gpx.studio)
|
[original githuh](https://github.com/ruisaraiva19/favycon)
|
||||||
|
|
||||||
## installazione
|
## installazione
|
||||||
|
|
||||||
modificare il file .env inserendo la key per mapbox
|
|
||||||
|
|
||||||
eseguire
|
eseguire
|
||||||
|
|
||||||
|
@ -12,58 +11,18 @@ eseguire
|
||||||
|
|
||||||
far partire
|
far partire
|
||||||
|
|
||||||
sudo docker run -d --name gpxstudionew -e PUID=1000 -e PGID=1000 -e TZ=Europe/Rome -p 8111:8111 --restart unless-stopped gpxstudionew:latest
|
./start.sh
|
||||||
|
|
||||||
|
|
||||||
oppure tramite portainer o compose
|
oppure tramite portainer o compose
|
||||||
|
|
||||||
services:
|
services:
|
||||||
gpxstudionew:
|
favicon:
|
||||||
container_name: gpxstudionew
|
ports:
|
||||||
environment:
|
- 8112:3000
|
||||||
- PUID=1000
|
container_name: favicon
|
||||||
- PGID=1000
|
image: favicon
|
||||||
- TZ=Europe/Rome
|
restart: unless-stopped
|
||||||
ports:
|
|
||||||
- 8111:8111
|
|
||||||
restart: unless-stopped
|
|
||||||
image: gpxstudionew:latest
|
|
||||||
|
|
||||||
## Prove
|
|
||||||
|
|
||||||
utilizzare questi comandi
|
|
||||||
|
|
||||||
[comandi manuali](./Manual_Command.md)
|
|
||||||
|
|
||||||
## Inserimento delle favicon (procedimento utilizzato)
|
|
||||||
|
|
||||||
è stato utilizzato questo sito [favicon generator](https://www.favicon-generator.org/)
|
|
||||||
|
|
||||||
il file icon contiene i link generati con favicon generator
|
|
||||||
|
|
||||||
COPY icon /gpxstudio/website
|
|
||||||
|
|
||||||
e' stato variato l'indirizzamento al folder corretto usando nel path la variabile
|
|
||||||
|
|
||||||
%sveltekit.assets%
|
|
||||||
|
|
||||||
in fase di build vengono inseriti i link alle icone nel file website/src/app.thml
|
|
||||||
|
|
||||||
sed -i '/link rel/r icon' src/app.html
|
|
||||||
|
|
||||||
e tutte le icone generate sono nel folder favicon e vengono copiate in website/static
|
|
||||||
|
|
||||||
COPY ./favicon /gpxstudio/website/static
|
|
||||||
|
|
||||||
in manifest.json (in favicon folder) viene inserito il nome della app
|
|
||||||
|
|
||||||
## Inserimento del server di routing oltre all'host per il docker (0.0.0.0) e la porta di comunicazione
|
|
||||||
|
|
||||||
in Dockerfile c'è l'inserimento del server di routing che in questo caso è brouter.patachina.it
|
|
||||||
|
|
||||||
sed -i 's/routing.gpx.studio/brouter.patachina.it/g' ./src/lib/components/toolbar/tools/routing/Routing.ts
|
|
||||||
|
|
||||||
in website/packaging.json si inserisce l'host 0.0.0.0 di default per poter camunicare con l'esterno del docker e la porta (in questo caso 8111)
|
|
||||||
|
|
||||||
sed -i 's/vite dev/vite dev --host 0.0.0.0 --port 8111/g' package.json
|
|
||||||
sed -i 's/vite preview/vite preview --host 0.0.0.0 --port 8111/g' package.json
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue