User:Vincent 95/installation osm142

From OpenStreetMap Wiki
Jump to: navigation, search
server {
    listen       [::]:80;
    listen       80;
    server_name  vtile.openstreetmap.fr;
  • sudo /usr/sbin/nginx -s reload
  • chargement

/app/imposm3/imposm3 import -read /data/download/ile-de-france-latest.osm.pbf -cachedir /data/tmp_idf -diff -mapping mapping.yml -overwritecache

/app/imposm3/imposm3 import -write -cachedir /data/tmp_idf -diff -mapping mapping.yml -connection 'postgis://vtile@localhost/imposm' -dbschema-import import_idf


  • curl

sudo apt-get install curl

  • zip

sudo apt-get install zip

  • Node

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

sudo apt-get install nodejs

  • Fonts

git clone https://github.com/openmaptiles/fonts.git

sudo npm install genfontgl

cd fonts/

./generate.sh

cp -r _deploy /usr/share/nginx/html/jb/glyphs

chmod -R a+rwx /usr/share/nginx/html/jb/glyphs

  • utilery
    • cf https://github.com/tilery/utilery/blob/master/docs/install.md
    • cd /data/work//project/
    • sudo mkdir utilery
    • virtualenv utilery --python=/usr/bin/python3.4
    • cd utilery
    • source bin/activate
    • git clone https://github.com/etalab/utilery
    • cd utilery
    • pip install .
    • pip install -r requirements.txt
    • pip install gunicorn
    • Configuration
    • export UTILERY_SETTINGS=/data/work/utilery/utilery/utilery/config/default.py
    • Edition du fichier default.py
    • gunicorn utilery.views:app -b 0.0.0.0:8080 -w 8 --access-logfile=- --log-file=-