This commit is contained in:
Cristina Cochior 2020-01-05 12:24:03 +01:00
commit 7285adfe33
3 changed files with 26 additions and 2 deletions

5
.gitignore vendored
View File

@ -1,3 +1,4 @@
/node_modules/
/vocoder/archive/
*venv*
*__pycache__*
/node_modules/
/voicegardens/archive/

View File

@ -44,6 +44,26 @@ $ source .venv/bin/activate
$ pip install -r requirements.txt
```
### The curious case of GDAL
It's really hard to install GDAL. We need it to generate the tiles for the map.
Here is one way to do it but you might run into problems and need to research a
bit.
```bash
$ sudo apt install -y libgdal-dev
$ pip install pygdal=="`gdal-config --version`.*"
$ pip install gdal2tiles
```
And then it should be possible to run the tile generation.
```bash
$ gdal2tiles.py -l -p raster -z 0-5 -w none tiles2
```
You may need to use `python gdal2tiles.py` instead?
### Run the server
```bash

View File

@ -18,3 +18,6 @@ doesitsparkjoy:
voicegardens:
@fab -H $(REMOTE_HOST) voicegardens
tiles:
@gdal2tiles.py -l -p raster -z 0-5 -w none tiles2