tutorials:tilemill
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:tilemill [2014/03/25 15:48] – nine | tutorials:tilemill [2014/03/25 16:48] (current) – nine | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Install Tilemill on Debian Jessie (testing) ====== | ====== Install Tilemill on Debian Jessie (testing) ====== | ||
- | ===== dependencies ===== | + | Tutorial modified from: http:// |
- | * Mapnik v2.2.0 | + | ===== Tilemill ===== |
- | * Node.js v0.10.x or v0.8.x | + | |
- | * Protobuf: libprotobuf-lite and protoc | + | |
+ | Install dependencies: | ||
< | < | ||
- | sudo aptitude install | + | sudo aptitude install |
</ | </ | ||
- | + | Install dependencies | |
- | ===== Tilemill ===== | + | |
- | + | ||
- | Install dependencies: | + | |
< | < | ||
sudo aptitude install git libmapnik2-dev python-gtk2-dev libwebkit-dev libsqlite3-dev | sudo aptitude install git libmapnik2-dev python-gtk2-dev libwebkit-dev libsqlite3-dev | ||
Line 25: | Line 21: | ||
</ | </ | ||
- | in order to download | + | obtain the latest version of tilemill: |
< | < | ||
- | sudo aptitude install | + | git clone https:// |
+ | cd tilemill | ||
</ | </ | ||
- | download | + | or the latest **release** of tilemill: |
< | < | ||
TILEMILL_TAG=" | TILEMILL_TAG=" | ||
Line 36: | Line 33: | ||
cd tilemill | cd tilemill | ||
git checkout ${TILEMILL_TAG} | git checkout ${TILEMILL_TAG} | ||
+ | </ | ||
+ | |||
+ | make command **node** available: | ||
+ | < | ||
+ | ln -s / | ||
+ | </ | ||
+ | |||
+ | compile and install tilemill: | ||
+ | < | ||
npm install | npm install | ||
</ | </ | ||
+ | |||
+ | create a tilemill launch-script: | ||
+ | < | ||
+ | echo "#! /bin/sh | ||
+ | node / | ||
+ | chmod +x / | ||
+ | </ | ||
+ | |||
+ | |||
===== download data into postgis ===== | ===== download data into postgis ===== | ||
Line 43: | Line 58: | ||
< | < | ||
sudo -u postgres createdb -U postgres tilemill_austria | sudo -u postgres createdb -U postgres tilemill_austria | ||
- | sudo -u postgres | + | sudo -u postgres |
- | sudo -u postgres | + | |
- | sudo -u postgres psql tilemill_austria -f / | + | |
sudo -u postgres createuser -Upostgres --no-superuser --no-createdb --no-createrole tilemill | sudo -u postgres createuser -Upostgres --no-superuser --no-createdb --no-createrole tilemill | ||
sudo -u postgres psql -U postgres -c "ALTER ROLE tilemill WITH PASSWORD ' | sudo -u postgres psql -U postgres -c "ALTER ROLE tilemill WITH PASSWORD ' |
tutorials/tilemill.1395762523.txt.gz · Last modified: 2014/03/25 15:48 by nine