2015-10-10 17:42:44 +02:00
|
|
|
## Installation
|
2016-01-25 17:25:45 +01:00
|
|
|
```bash
|
2015-10-10 17:42:44 +02:00
|
|
|
./install.sh
|
|
|
|
systemctl enable uwsgi-ffmap
|
|
|
|
systemctl enable uwsgi-tiles-links_and_routers
|
|
|
|
systemctl enable uwsgi-tiles-hoods
|
|
|
|
systemctl start uwsgi-ffmap
|
|
|
|
systemctl start uwsgi-tiles-links_and_routers
|
|
|
|
systemctl start uwsgi-tiles-hoods
|
|
|
|
# Then apply NGINX Config
|
|
|
|
```
|
|
|
|
|
|
|
|
## Debian Dependencies
|
2016-01-25 17:25:45 +01:00
|
|
|
```bash
|
2015-10-16 16:28:52 +02:00
|
|
|
apt-get install python python3 mongodb python3-requests python3-lxml python3-pip python3-flask python3-dateutil python3-numpy python3-scipy python-mapnik python3-pip uwsgi-plugin-python uwsgi-plugin-python3 nginx tilestache
|
2015-10-10 17:42:44 +02:00
|
|
|
pip3 install pymongo
|
|
|
|
```
|
|
|
|
|
|
|
|
## NGINX Config
|
2016-01-25 17:25:45 +01:00
|
|
|
```nginx
|
2015-10-10 17:42:44 +02:00
|
|
|
...
|
2016-01-22 21:10:19 +01:00
|
|
|
location / {
|
|
|
|
include uwsgi_params;
|
|
|
|
uwsgi_pass 127.0.0.1:3031;
|
2016-02-17 02:47:13 +01:00
|
|
|
client_max_body_size 30M;
|
2016-01-22 21:10:19 +01:00
|
|
|
}
|
2015-10-10 17:42:44 +02:00
|
|
|
|
2015-10-16 16:28:52 +02:00
|
|
|
location /tiles {
|
|
|
|
include uwsgi_params;
|
|
|
|
uwsgi_pass 127.0.0.1:3032;
|
|
|
|
}
|
2015-10-10 17:42:44 +02:00
|
|
|
...
|
|
|
|
```
|